-
Notifications
You must be signed in to change notification settings - Fork 186
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
Implement Map broadcasting #3570
base: main
Are you sure you want to change the base?
Conversation
Codecov Report
@@ Coverage Diff @@
## master #3570 +/- ##
==========================================
- Coverage 93.87% 93.86% -0.02%
==========================================
Files 159 159
Lines 19216 19243 +27
==========================================
+ Hits 18039 18062 +23
- Misses 1177 1181 +4
Continue to review full report at Codecov.
|
@adonath what is the status here? |
@registerrier No, I think this will require more discussion on the actual behavior. E.g. if positions of axes do not align etc. Let's postpone... |
Hi @adonath . What is the status here? |
Description
This pull request implements the support for broadcasting when doing map arithmetics. It include the following methods:
MapAxis.broadcast()
, which returns the broadcasted axis dimension, i.e. the max of the len of the axis, when either both axes are equal or one of them has exactly one bin.MapAxes.broadcast()
, which follow bumpy broadcasting rules.Geom.broadcast()
, does broadcasting of the extra axes and requires the spatial dimension to be equivalent.Dear reviewer
Todo:
maps.ipynb
tutorial