-
Notifications
You must be signed in to change notification settings - Fork 153
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
Represent None
component.units
as empty strings
#2356
Conversation
What was the design decision to use |
I think I'm happy for the public API to not change, I just wanted to be be able to distinguish internally between units being set vs default. |
Is this related? DeprecationWarning: Passing |
Then perhaps it's better to cherry-pick the first commit, so passing |
To the units treatment? No, showed already up before the units PR was merged; I suspect it is related to the
from the same |
@dhomeier - sounds good, I'll remove the second commit |
949f0d7
to
510a664
Compare
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.
The other jdaviz failures are unrelated to this PR, so merging this and will open a separate PR to fix the other issue.
Description
To fix issues as in spacetelescope/jdaviz#1909 where
f'{unit}'
returns unexpected results, this returnsself._units
ofNone
as''
for allComponent
subclasses. This is analogous to how these are already handled inCoordinates
.In case the internal value of
self._units == None
is still required somewhere, the second commit reverses the transformation on setting units, but it does not seem to be required for passing tests.