Describe the bug
The use of _new_instance in the NDCube.__pow__ method was causing a traceback when doing arithmetic with downstream specutils.Spectrum objects that inherit from NDCube. See here for a description/traceback. I worked around this in astropy/specutils#1291 but it might be worth updating the method here to avoid this.
To Reproduce
See linked specutils issue above.
Screenshots
No response
System Details
Installation method
No response
Describe the bug
The use of
_new_instancein theNDCube.__pow__method was causing a traceback when doing arithmetic with downstreamspecutils.Spectrumobjects that inherit fromNDCube. See here for a description/traceback. I worked around this in astropy/specutils#1291 but it might be worth updating the method here to avoid this.To Reproduce
See linked specutils issue above.
Screenshots
No response
System Details
Installation method
No response