-
Notifications
You must be signed in to change notification settings - Fork 39
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
Add converter for Arctica-M N1 RSR data. #145
Conversation
Codecov Report
@@ Coverage Diff @@
## main #145 +/- ##
==========================================
+ Coverage 88.03% 88.94% +0.91%
==========================================
Files 22 22
Lines 2473 2515 +42
==========================================
+ Hits 2177 2237 +60
+ Misses 296 278 -18
Flags with carried forward coverage won't be shown. Click here to find out more.
Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here. |
@simonrp84 You can update |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM. But please fix the typo! Which is essential, and can only be tested via off-line testing
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sorry @simonrp84 But could you please add some testing on your added code in utils.py
? The coverage went down. I didn't pay attention to that previously....
Looking at what's changed, it seems that the function I altered didn't have any tests before - so I would need to add them. This will probably not be a quick effort as I've not worked with mocking HDF5 before. Will see what I can do. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There are changes to utils.py which seems poorly covered by tests. Is it something you can try improve? Or do you need help?
@simonrp84 I will try see if I can help our here. Maybe as Arctica-M is kind of on hold as we have no real-time flow of data this PR is not urgent and we can see if we find some time improving the test coverage of the |
To be honest I've forgotten what I did in this PR! Will check through it next week and then we can figure out how to move on it. Like you say, no rush now. |
I have now added some tests that should improve the coverage of the code previously missed. I chose to not mock the |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
This adds spectral response functions for the MSU-GS/A instruments aboard the Arctica-M N1 satellite.
There are two instruments aboard the satellite, which have differing spectral response functions. Here I add them as
det-1
anddet-2
.To achieve this, I have also updated
utils.py
to add the ability to save HDF5 files by detector - which wasn't implemented before.pytest pyspectral
flake8 pyspectral