-
Notifications
You must be signed in to change notification settings - Fork 12
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
Bugfix - slstr not yet properly supported #92
Bugfix - slstr not yet properly supported #92
Conversation
…raised Signed-off-by: Adam.Dybbroe <[email protected]>
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #92 +/- ##
==========================================
+ Coverage 55.52% 55.71% +0.19%
==========================================
Files 15 14 -1
Lines 2100 2107 +7
==========================================
+ Hits 1166 1174 +8
+ Misses 934 933 -1 ☔ View full report in Codecov by Sentry. 🚨 Try these New Features:
|
This was the kind of error I got in the unittests offline in main!
|
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 didn't we add slstr recently?
trollsched/boundary.py
Outdated
@@ -38,6 +38,10 @@ | |||
"avhrr-3": "avhrr", | |||
"mwhs-2": "mwhs2"} | |||
|
|||
class InstrumentNotSupported(Exception): | |||
"""Exception to capture cases when instrument are (yet) not supported.""" | |||
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.
you don't need 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.
Fixed
Signed-off-by: Adam.Dybbroe <[email protected]>
@TAlonglong I suppose you would not be happy about this? |
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.
I'm good with this.
A very rudimentary implementation for the SLSTR instrument was implemented, however, a bug (not providing the maximum scan angle) results in failed tests, see #91 for instance!
The SLSTR instrument is not a cross track scanner, and it seems misleading to have it implemented as if it was. We need to make a more adequate implementation, rather than define an artificial "maximum scan angle" to make it look like an AVHRR.
Until then I propose to remove its "support" and raise an exception.
git diff origin/main **/*py | flake8 --diff