You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This is probably because Beam is a Quantity object and there's something related to numpy array copying that requires a __new__ method, or something like that.
When using copy.copy(Beam) or copy.deepcopy(Beam) the returned object loses all of its attributes such as Beam.major and Beam.minor.
Sample code:
I think the fix is fairly simple by defining a new
__copy__
and__deepcopy__
method for the Beam class.The text was updated successfully, but these errors were encountered: