-
Notifications
You must be signed in to change notification settings - Fork 11
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
switch band order to scarlet band order #113
Conversation
Codecov Report
@@ Coverage Diff @@
## main #113 +/- ##
==========================================
+ Coverage 74.57% 74.63% +0.05%
==========================================
Files 10 10
Lines 948 954 +6
==========================================
+ Hits 707 712 +5
- Misses 241 242 +1
Flags with carried forward coverage won't be shown. Click here to find out more.
Continue to review full report at Codecov.
|
Well I do usually have the channels as the last dimension... maybe we should have a tag defining the order and doing the transposition automatically ? |
Yeah I can do that, I think I will use this order as the default for everything, but add an optional keyword argument to the draw_blend_generator so that it can return the images transposed in a specific way. Would that work for you? |
OK I just added a keyword |
I think it works that way. Tensorflow uses a string with values "NHWC" or "NCHW" as a tag (for channel last and channel first), this may be more user-friendly ? I don't think anyone would want to have the channels as the middle one anyway. But it's a very minor thing anyway. |
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.
See my last comment ; apart from that it seems OK for me, as long as the tests run it should be working.
Ah I like this idea better actually, I will quickly make the change and then merge when tests are passing. Thanks! |
This is more of a selfish change, I've always wanted the order of the images shape to be [n_bands, nx, ny] rather than [nx, ny, n_bands]. This is also the convention used in scarlet and in bliss so it would be nice to have everything consistent and not have to remember to transpose (at least for me). This also simplifies the code in
plot_utils.py
slightly.Would this cause any problems for anyone? Did I miss any places?