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
Calibration mode can now be passed via a keyword argument #543
Conversation
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.
Looks good. I have few code cleanup things and other suggestions that I'd like to discuss. See comments below.
Codecov Report
@@ Coverage Diff @@
## master #543 +/- ##
==========================================
- Coverage 78.07% 78.07% -0.01%
==========================================
Files 137 137
Lines 19890 19894 +4
==========================================
+ Hits 15530 15533 +3
- Misses 4360 4361 +1
Continue to review full report at Codecov.
|
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.
Good job! A couple of things missing:
- Documentation about the calibration mode switch (could be done in the docstring of the native_msg module)
- Tests
Also, would this work with hrit data too ?
using of the calibration mode kwarg was added to the native_msg_reader class. |
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.
Looks good. Just a simple test and we're good to merge imo.
Re creating a test: In theory should we not instantiate a Scene object for native_msg reader and check the calibration mode but the init method tries to open/read in an actual file to read the header and trailer. I am not sure how to create a test for this scenario. |
You could do one test for instantiating the file handler with |
Re creating a test. I will wait until the test reader name changes are in master if thats ok |
This PR needs a merge with master to fix the conflicts. |
Cherry-picked from pytroll#543.
@ColinDuff I would like to propose adding a line |
@ColinDuff Where are we with this PR ? It would be nice to see the conflicts fixed and the tests implemented so that we can merge it. |
apologies but i have to concentrate on a new MPEF release for now. When i have time i can resolve the issues and have the PR in a state to be merged. will try to do so soon |
just pushed to get into sync with satpy master, new filenames etc. will add a test soon |
|
||
def tearDown(self): | ||
pass | ||
|
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.
W293 blank line contains whitespace
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.
Waiting on #647 to fix the appveyor failures, then I'll merge this.
This PR includes the code need to pass the Calibration mode , needed for MSG Calibration, using keyword arguments
This would close #521 if approved
flake8 passed for all 3 files