Skip to content

Remove duplicate parse_rinex_nav_file function #159

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 14 commits into from
Apr 21, 2025
Merged

Conversation

jtec
Copy link
Owner

@jtec jtec commented Feb 24, 2025

The function parse_rinex_nav_file existed twice, with slightly different output, likely to work around circular imports. This PR re-arranges some code somewhat so that there is only one.

Also merged helpers.py into util.py, as those two have the same job (module with small helper/utility functions) and it's not clear why those functions are divided into two modules.

@jtec jtec requested a review from plutonheaven February 24, 2025 19:29
@@ -221,11 +224,21 @@ def check_assumptions(
)


def parse_rinex_nav_or_obs_file(rinex_file_path: Path):
Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This convenience function was actually only used to warm up the parser cache, so moved it here.

@@ -575,7 +575,7 @@ def test_gps_group_delay_multi_prn(input_for_test):
def test_gal_group_delay(input_for_test):
"""
Note that both ephemerides have the same Toe (reference time), but one is I/NAV, the
other F/NAV. This test implicitly checks whether the right ephemeris is used wben computing
other F/NAV. This test implicitly checks whether the right ephemeris is used when computing
Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

unrelated typo fix

@plutonheaven
Copy link
Collaborator

What is the difference between helpers.py and util.py? Does it make sense to keep those 2 files separated?

@plutonheaven
Copy link
Collaborator

What is the difference between helpers.py and util.py? Does it make sense to keep those 2 files separated?

@jtec, this question is still valid. I would rather limit the number of submodule files, so why not merge helpers.py and util.py? Unless there is a clear rationale to have both separated files?

@jtec
Copy link
Owner Author

jtec commented Apr 13, 2025

@plutonheaven Very good point, I merged helpers.pyinto util.py.

@jtec jtec merged commit 61fb68c into main Apr 21, 2025
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants