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
if count == 1, the system assumes that it is only acquiring a single frame, and then tries to reshape the data to data.shape[1:]. But also a sequence acquisition that only incremented the frame count by 1 in an iteration will lead to count == 1, resulting in an error because you cannot do data.reshape(data.shape[1:]) unless data.shape[0] == 1, but that is not guaranteed here.
which seems to work so far but might cause other issues that I'm not aware of. But this definitely needs a more thorough check than what is currently implemented.
The text was updated successfully, but these errors were encountered:
This is the problematic line:
nionswift-instrumentation-kit/nion/instrumentation/Acquisition.py
Line 1809 in d44728a
if
count == 1
, the system assumes that it is only acquiring a single frame, and then tries to reshape the data todata.shape[1:]
. But also a sequence acquisition that only incremented the frame count by 1 in an iteration will lead tocount == 1
, resulting in an error because you cannot dodata.reshape(data.shape[1:])
unlessdata.shape[0] == 1
, but that is not guaranteed here.I've changed this line to:
which seems to work so far but might cause other issues that I'm not aware of. But this definitely needs a more thorough check than what is currently implemented.
The text was updated successfully, but these errors were encountered: