Skip to content
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

Allow DN as a unit on GenericMap #7585

Open
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

wtbarnes
Copy link
Member

Fixes #6566

@nabobalis nabobalis added map Affects the map submodule No Backport A PR that isn't to be backported to any release branch. (To be used as a flag to other maintainers) labels Apr 23, 2024
Comment on lines +1702 to 1735
10 * u.s,
u.Quantity([10], u.s),
u.Quantity(np.random.rand(128), u.s),
u.Quantity(np.random.rand(128, 128), u.s),
10.0,
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why have ct changed to s? Rather than DN?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fair question. Because it seemed silly to be multiplying (or dividing) DN by something in ct

@nabobalis nabobalis added this to the 6.0.0 milestone May 8, 2024
@DanRyanIrish
Copy link
Member

I approve of the principle of this PR. I think that this is a case of the FITS standard being insufficient, rather than solar physicists not adhering to that standard. We need DN. It is not the same as counts.

@nabobalis nabobalis marked this pull request as ready for review May 16, 2024 00:39
@nabobalis nabobalis requested review from a team as code owners May 16, 2024 00:39
@nabobalis
Copy link
Contributor

The only tests I could not fix were the asdf ones.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
map Affects the map submodule No Backport A PR that isn't to be backported to any release branch. (To be used as a flag to other maintainers)
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Use of u.DN unit in place of u.count
3 participants