Skip to content
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

Change loading code #67

Merged
merged 32 commits into from
Jan 15, 2025
Merged

Change loading code #67

merged 32 commits into from
Jan 15, 2025

Conversation

jkingslake
Copy link
Member

@jkingslake jkingslake commented Nov 27, 2024

This is a big overhaul of the code used to load dat files.

Instead of using the code originally written by Keith Nicholls to load the header and chirps, it will now use a package called bas-apres. This results in a lot of code from xapres being deleted and overall significant simplification.

For example, the new code has only two functions that are specific to unattended or attended, whereas before we have a couple of levels on each side.

The structure in load,from_dats is now as follows
all_bursts_in_dat_to_xarray --> load_all for unattended
and
all_bursts_at_waypoint_to_xarray --> load_all for attended.

all_bursts_in_dat_to_xarray and all_bursts_at_waypoint_to_xarray both call a number of other smaller function including subset_bursts_to_process and header_cleaning

and load_all calls a few other like is_this_a_remote_load, subset_files and list_files

This PR also simplifies the dependencies and adds a number of tests, which brings the coverage up to 99%.

It also adds my fork of bas-apres as a submodule.

I pulled the changes that I merged form the docs branch, so now this branch also builds the latest version of the docs.

next step is to get it working in attended mode.
Deleted all unused code. A lot could be removed because the bas-apres code replaces it.
Also adds many new test which get coverage up to >95%
Copy link

Code Coverage

Package Line Rate Complexity Health
. 0% 0
tests 92% 0
xapres 93% 0
Summary 92% (637 / 691) 0

Minimum allowed line rate is 60%

@jkingslake jkingslake merged commit 648c705 into master Jan 15, 2025
3 checks passed
@jkingslake jkingslake deleted the change_loading_code branch January 15, 2025 15:19
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.

1 participant