Skip to content

Commit

Permalink
polish documentation
Browse files Browse the repository at this point in the history
  • Loading branch information
md-arif-shaikh committed Nov 25, 2024
1 parent 41dfcb8 commit 766221c
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 18 deletions.
25 changes: 13 additions & 12 deletions gw_eccentricity/eccDefinition.py
Original file line number Diff line number Diff line change
Expand Up @@ -732,12 +732,12 @@ def transform_inertial_to_coprecessing(self, data_dict, suffix=""):
coprecessing frame modes.
suffix: str, default=""
A suffix used to specify which input modes dictionary to use for
obtaining the coprecessing modes. For example, using
`suffix="_zeroecc"` selects the input modes corresponding to the
"zeroecc" modes dictionary, which are then rotated to compute the
coprecessing modes. If left as the default value (`""`), the input
modes from the eccentric modes dictionary are used.
A suffix specifying which inertial frame data to use when
transforming inertial frame modes to coprecessing frame modes. For
example, setting `suffix="_zeroecc"` selects the inertial frame
modes corresponding to the "zeroecc" (non-eccentric) case. If left
as the default value (`""`), the inertial frame modes for the
eccentric case are used.
Returns
-------
Expand All @@ -756,17 +756,18 @@ def transform_inertial_to_coprecessing(self, data_dict, suffix=""):
data_dict.update(hlm_dict)
data_dict = get_coprecessing_data_dict(data_dict, suffix=suffix)
warnings.warn(
f"Removing the inertial {'amplm' + suffix}, "
f"{'phaselm' + suffix} from `dataDict`. The same is computed "
f"Removing the input inertial frame {'amplm' + suffix}, "
f"{'phaselm' + suffix} from `dataDict`. The corresponding "
"coprecessing frame quantities are computed "
f"later from the coprecessing {'hlm' + suffix} in"
f"`get_amp_phase_omega_data.`")
f"`get_amp_phase_omega_data`.")
data_dict.pop("amplm" + suffix, None)
data_dict.pop("phaselm" + suffix, None)
if "omegalm" + suffix in data_dict:
warnings.warn(
f"Removing the inertial {'omegalm' + suffix} from `dataDict`. "
f"The coprecessing {'omegalm' + suffix}. The same is computed "
f"later from the coprecessing {'hlm' + suffix} in "
f"Removing the input inertial frame {'omegalm' + suffix} "
f"from `dataDict`. The coprecessing {'omegalm' + suffix} is "
f"computed later from the coprecessing {'hlm' + suffix} in "
f"`get_amp_phase_omega_data`.")
data_dict.pop("omegalm" + suffix, None)
return data_dict
Expand Down
11 changes: 5 additions & 6 deletions gw_eccentricity/load_data.py
Original file line number Diff line number Diff line change
Expand Up @@ -1557,12 +1557,11 @@ def get_coprecessing_data_dict(data_dict, ell_min=2, ell_max=2, suffix=""):
Maximum `ell` value to use.
suffix: str, default=""
A suffix used to specify which input modes dictionary to use for
obtaining the coprecessing modes. For example, using
`suffix="_zeroecc"` selects the input modes corresponding to the
"zeroecc" modes dictionary, which are then rotated to compute the
coprecessing modes. If left as the default value (`""`), the input
modes from the eccentric modes dictionary are used.
A suffix specifying which inertial frame data to use when transforming
inertial frame modes to coprecessing frame modes. For example, setting
`suffix="_zeroecc"` selects the inertial frame modes corresponding to
the "zeroecc" (non-eccentric) case. If left as the default value
(`""`), the inertial frame modes for the eccentric case are used.
Returns
-------
Expand Down

0 comments on commit 766221c

Please sign in to comment.