-
-
Notifications
You must be signed in to change notification settings - Fork 585
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
No more modify meta #5501
No more modify meta #5501
Conversation
Hello @dstansby! Thanks for updating this PR.
Comment last updated at 2021-10-19 17:52:17 UTC |
410cadb
to
1446531
Compare
79b4d5b
to
86029ba
Compare
86029ba
to
165cbee
Compare
There are also still some modification to header values in Line 143 in a319336
I don't know if you want to address that here as well? |
Thanks - I hadn't spotted that, but I will try to remove that in this PR too. |
165cbee
to
29e1155
Compare
It came about when I was constructing the EUI headers (which are for some reason missing the |
I had a quick ctrl-F and |
3b11bd1
to
1c03a27
Compare
Oh there are going to be some conflicts between this and #5261 😅 |
455076b
to
8f176fd
Compare
f3f498a
to
0a32316
Compare
18944ee
to
8586a83
Compare
from sunpy.map import GenericMap | ||
import astropy.units as u | ||
|
||
from sunpy.map.mapbase import GenericMap, SpatialPair | ||
|
||
__all__ = ['SJIMap'] |
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.
Should we deprecate 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.
Why? Either way I think that's something for a new PR.
return u.Unit(unit) | ||
|
||
@property | ||
def _default_observer_coordinate(self): |
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.
Is this going to be useful in future or is it called elsewhere? I tried to do a search on github but it came up with nothing.
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.
It's used in GenericMap.observer_coordinate
.
|
||
@property | ||
def scale(self): | ||
if self.meta['cunit2'] == 'Sine Latitude': |
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.
Should we return none if this isn't the case?
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.
No, a user could have already corrected the metadata in which case we want to let it pass through.
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.
Some minor nitpicks, but overall looks good to me. Thanks for this massive effort!
Co-authored-by: Will Barnes <will.t.barnes@gmail.com>
CI failures to fix before we merge. |
1de6635
to
a6f5946
Compare
Replaces #5199 - see that PR for motivation and discussion.
Fixes #4324, fixes #4410