Skip to content

Commit

Permalink
Change docstring wording
Browse files Browse the repository at this point in the history
  • Loading branch information
philbull committed May 1, 2018
1 parent e687d15 commit e50165f
Showing 1 changed file with 10 additions and 4 deletions.
14 changes: 10 additions & 4 deletions hera_pspec/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -75,8 +75,11 @@ def get_delays(freqs):

def spw_range_from_freqs(data, freq_range, bounds_error=True):
"""
Return the first and last frequency array indices for a spectral window,
where the window is specified as a range of frequencies.
Return a tuple defining the spectral window that corresponds to the
frequency range specified in freq_range.
(Spectral windows are specified as tuples containing the first and last
index of a frequency range in data.freq_array.)
Parameters
----------
Expand Down Expand Up @@ -153,8 +156,11 @@ def spw_range_from_freqs(data, freq_range, bounds_error=True):

def spw_range_from_redshifts(data, z_range, bounds_error=True):
"""
Return the first and last frequency array indices for a spectral window,
where the window is specified as a range of redshifts.
Return a tuple defining the spectral window that corresponds to the
redshift range specified in z_range.
(Spectral windows are specified as tuples containing the first and last
index of a frequency range in data.freq_array.)
Parameters
----------
Expand Down

0 comments on commit e50165f

Please sign in to comment.