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

Overhaul AZFP Environment group #1226

Merged
merged 1 commit into from
Nov 20, 2023
Merged

Conversation

emiliom
Copy link
Collaborator

@emiliom emiliom commented Nov 15, 2023

Fully addresses #1225.

I'm not aware of a source of data to populate the absorption_indicative & sound_speed_indicative variables, so I'm simply filling them with np.nan. @leewujung do you know if there's something in the AZFP raw data & XML that could be used? If there isn't, or it's not straightforward, I suggest leaving the variables in with np.nan; after all, the variables were not present before this PR 😅

… valid data; add missing mandatory absorption_indicative & sound_speed_indicative vars (currently all nan); and update tests
@emiliom emiliom added this to the 0.8.2 milestone Nov 15, 2023
@emiliom emiliom requested a review from leewujung November 15, 2023 09:10
@emiliom emiliom self-assigned this Nov 15, 2023
@codecov-commenter
Copy link

codecov-commenter commented Nov 15, 2023

Codecov Report

All modified and coverable lines are covered by tests ✅

Comparison is base (71f0250) 83.44% compared to head (14155b1) 77.96%.

Additional details and impacted files
@@            Coverage Diff             @@
##              dev    #1226      +/-   ##
==========================================
- Coverage   83.44%   77.96%   -5.49%     
==========================================
  Files          64       16      -48     
  Lines        5672     2632    -3040     
==========================================
- Hits         4733     2052    -2681     
+ Misses        939      580     -359     
Flag Coverage Δ
unittests 77.96% <100.00%> (-5.49%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@emiliom emiliom changed the title Overhaul AZFP Environment group Overhaul AZFP Environment group Nov 15, 2023
Copy link
Member

@leewujung leewujung left a comment

Choose a reason for hiding this comment

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

Hey @emiliom : Thanks for the PR. LGTM!

And yeah, absorption_indicative and sound_speed_indicative need to be calculated for AZFP for calibrating the data.

@emiliom
Copy link
Collaborator Author

emiliom commented Nov 20, 2023

And yeah, absorption_indicative and sound_speed_indicative need to be calculated for AZFP for calibrating the data.

Ah. Maybe in the next release, the calculation of those parameters can be moved to open_raw, if appropriate.

I'll merge the PR now. Thanks!

@emiliom emiliom merged commit 31e35f7 into OSOceanAcoustics:dev Nov 20, 2023
3 checks passed
@emiliom emiliom deleted the azfp-env-group branch November 20, 2023 19:32
@leewujung leewujung mentioned this pull request Nov 24, 2023
4 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

3 participants