We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Briefly, the NDData._arithmetic currently initializes its result with
NDData._arithmetic
result = self.__class__(data) # in case we are dealing with an inherited type
and then goes on to set result.unit, etc. That causes an issue for subclasses that want to require units.
result.unit
A PR that fixes this (and a similar issue in NDData.convert_unit_to) is on its way.
NDData.convert_unit_to
The text was updated successfully, but these errors were encountered:
Add CHANGES.rst entry
5fcd96f
Closes astropy#2300
Add tests for astropy#2300
3f42eb5
b3d8574
8679d26
Successfully merging a pull request may close this issue.
Briefly, the
NDData._arithmetic
currently initializes its result withand then goes on to set
result.unit
, etc. That causes an issue for subclasses that want to require units.A PR that fixes this (and a similar issue in
NDData.convert_unit_to
) is on its way.The text was updated successfully, but these errors were encountered: