Skip to content

Commit

Permalink
Docstring fixings
Browse files Browse the repository at this point in the history
  • Loading branch information
EugeneDu-GA committed Sep 27, 2024
1 parent eaa7a8b commit 564dbef
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 12 deletions.
4 changes: 2 additions & 2 deletions gnssanalysis/gn_diffaux.py
Original file line number Diff line number Diff line change
Expand Up @@ -720,8 +720,8 @@ def sp3_difference(
:param _Path base_sp3_file: Path of the baseline SP3 file
:param _Path test_sp3_file: Path of the test SP3 file
:param list[str] svs: List of satellites to process
:param str orb_hlm_mode: Helmert transformation to apply to orbits. Can be None, "ECF", or "ECI".
:param bool epochwise_hlm: Epochwise HLM transformation.
:param str orb_hlm_mode: Helmert transformation to apply to orbits. Can be None, "ECF", or "ECI"
:param bool epochwise_hlm: Epochwise Helmert transformation
:param list clk_norm_types: Normalizations to apply to clocks. Available options include 'epoch', 'daily', 'sv',
any satellite PRN, or any combination of them, defaults to empty list
:return _pd.DataFrame: The Pandas DataFrame containing orbit and clock differences
Expand Down
15 changes: 6 additions & 9 deletions gnssanalysis/gn_io/sp3.py
Original file line number Diff line number Diff line change
Expand Up @@ -792,7 +792,6 @@ def sp3merge(
:param List[str] sp3paths: The list of paths to the sp3 files.
:param Union[List[str], None] clkpaths: The list of paths to the clk files, or None if no clk files are provided.
:param bool nodata_to_nan: Flag indicating whether to convert nodata values to NaN.
:return pd.DataFrame: The merged sp3 DataFrame.
"""
sp3_dfs = [read_sp3(sp3_file, nodata_to_nan=nodata_to_nan) for sp3_file in sp3paths]
Expand All @@ -809,17 +808,16 @@ def sp3merge(
return merged_sp3


def hlm_trans(a: _np.ndarray, b: _np.ndarray) -> tuple[_np.ndarray, list]:
def hlm_trans(pt1: _np.ndarray, pt2: _np.ndarray) -> tuple[_np.ndarray, list]:
"""
Rotates b into a.
:param _np.ndarray a: The a array.
:param _np.ndarray b: The b array.
Rotates a set of points pt1 into pt2.
:param _np.ndarray pt1: The first set of points.
:param _np.ndarray pt2: The second set of points.
:return tuple[_np.ndarray, list]: A tuple containing the output array and the HLM array with applied computed parameters and residuals.
"""
hlm = _gn_transform.get_helmert7(pt1=a, pt2=b)
xyz_out = _gn_transform.transform7(xyz_in=b, hlm_params=hlm[0])
hlm = _gn_transform.get_helmert7(pt1, pt2)
xyz_out = _gn_transform.transform7(xyz_in=pt2, hlm_params=hlm[0])
return xyz_out, hlm


Expand All @@ -830,7 +828,6 @@ def sp3_hlm_trans(a: _pd.DataFrame, b: _pd.DataFrame, epochwise: bool = False) -
:param DataFrame a: The sp3_a DataFrame.
:param DataFrame b : The sp3_b DataFrame.
:param bool epochwise: Epochwise HLM transformation.
:return tuple[pandas.DataFrame, list]: A tuple containing the updated sp3_b DataFrame and the HLM array with applied computed parameters and residuals.
"""
if epochwise:
Expand Down
1 change: 0 additions & 1 deletion gnssanalysis/gn_transform.py
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,6 @@ def get_helmert7(pt1: _np.ndarray, pt2: _np.ndarray, scale_in_ppm: bool = True,
:param numpy.ndarray pt2: The second set of points.
:param bool scale_in_ppm: Whether the scale parameter is in parts per million (ppm).
:param bool dropna: Whether to drop NaN values in input data.
:returns uple[np.ndarray, np.ndarray]: A tuple containing the Helmert parameters and the residuals.
"""
A, rhs = gen_helm_aux(pt1, pt2, dropna)
Expand Down

0 comments on commit 564dbef

Please sign in to comment.