Skip to content

Commit

Permalink
docstring restructure
Browse files Browse the repository at this point in the history
  • Loading branch information
sambit-giri committed Aug 28, 2024
1 parent 5e5bfd4 commit 7a3c1ad
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 8 deletions.
3 changes: 0 additions & 3 deletions src/tools21cm/nbody_file.py
Original file line number Diff line number Diff line change
Expand Up @@ -99,9 +99,6 @@ def get_npart(self):


def read_from_file(self, node=None):
'''
Read data from file.
'''
if node != None:
self.node = node
else:
Expand Down
7 changes: 2 additions & 5 deletions src/tools21cm/tau.py
Original file line number Diff line number Diff line change
Expand Up @@ -93,12 +93,9 @@ def tau_map(ionfractions, redshifts=None, num_points=50, reading_function=None):
tuple
A tuple containing:
- tau_0 : ndarray
Optical depth values at each spatial position and redshift.
The shape is `(N_x, N_y, N_z + num_points)`, where `N_x` and `N_y` are spatial
dimensions, and `N_z` is the number of redshift slices in `output_z`.
Optical depth values at each spatial position and redshift. The shape is `(N_x, N_y, N_z + num_points)`, where `N_x` and `N_y` are spatial dimensions, and `N_z` is the number of redshift slices in `output_z`.
- tau_z : ndarray
Array of redshift values corresponding to each slice in `tau_0`.
The length is `N_z + num_points`.
Array of redshift values corresponding to each slice in `tau_0`. The length is `N_z + num_points`.
"""
if redshifts is None:
Expand Down

0 comments on commit 7a3c1ad

Please sign in to comment.