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
After copying or time_slicing an analogsignalarray accessing the parents of the analogsignal results in an AttributeError 'AnalogSignalArray' object has no attribute 'segment'. The result is the same for a simple copy or a deep copy.
Original: (None, None)
Appended: (None, None)
After slicing: AttributeError 'AnalogSignalArray' object has no attribute 'segment'
After deep copy: AttributeError 'AnalogSignalArray' object has no attribute 'segment'
After copy: AttributeError 'AnalogSignalArray' object has no attribute 'segment'
In the case of time_slice this can be fixed by additionally copying the parents of the old analogsignalarray to the newly generated analogsignalarray in the time_slice function. But this does not solve the same issue when using copy.
The text was updated successfully, but these errors were encountered:
I was using deepcopy in my code.
When copying analogsignals it worked ok.
On the segment it had problems, probably with recursive implementation of copy/deepcopy - the returned copies were simplified/derived of some parameters (annotations, quantities)
After copying or time_slicing an analogsignalarray accessing the parents of the analogsignal results in an AttributeError 'AnalogSignalArray' object has no attribute 'segment'. The result is the same for a simple copy or a deep copy.
This can be seen when running:
This code prints:
In the case of time_slice this can be fixed by additionally copying the parents of the old analogsignalarray to the newly generated analogsignalarray in the time_slice function. But this does not solve the same issue when using copy.
The text was updated successfully, but these errors were encountered: