-
Notifications
You must be signed in to change notification settings - Fork 44
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 ni and nj as dimensions to be corrected #51
Conversation
Codecov Report
@@ Coverage Diff @@
## master #51 +/- ##
=======================================
Coverage 59.92% 59.92%
=======================================
Files 6 6
Lines 564 564
=======================================
Hits 338 338
Misses 226 226
Continue to review full report at Codecov.
|
Ah yes. That is a good point. I was aware of that and aranged these names last, but I agree this is brittle. I will open another issue to track this and think about a way to implement this in a better way. |
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.
This looks good to me. Dont forget to add an entry in doc/whats-new.rst
and then we can get this merged.
Thanks again.
Sure. Where in the doc file shall I place it? Under v0.2.0 (unreleased) > Internal changes? |
- Add `ni` and `nj` to the `rename_dict` dictionary in _preprocessing.py_ as dimensions to be corrected (:pull:`54`) | ||
By `Markus Ritschel <https://github.com/markusritschel>`_ | ||
|
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.
Hope this is on the right place?
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.
Yes. Awesome. Will merge when the tests have all passed.
Travis is acting weird. Ill close this and reopen to trigger a new build |
This is quite frustrating. I will wait a bit, to see if there are some outages at either gh or travis that might clear up... |
Have you tried doing the CI with Github actions? |
Not yet, but this experience here certainly is a compelling reason to switch...unbelievable. Ill force the merge, since these are very small changes and the PR test went trough. |
As a remark:
Sometimes,
lon
andlat
are 2D coordinates depending onni
andnj
, respectively. For example,I added the entries for
ni
andnj
in therename_dict
pretty much in the front of the list since, otherwise, it could lead to unwanted behavior.The current routine checks only for the first appearance of the key in that list. If
ni
was placed at the end of the list, the routine would stop atlon
(setting thetrigger=True
and would not even check forni
. In the above example, this would rename the 2D coordinatelon (nj, ni)
tox (ni, nj)
.The desired behavior, however, is:
So, one must really keep the order in mind.
Maybe this should be considered when revising the routine at some point.