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
Assuming we're not doing something like GST (a case we can work around) is there any reason not to do this? Seems this would be an issue anytime you needed seqs or adata about them after you'd run compile_to_hardware
The text was updated successfully, but these errors were encountered:
I think we can indeed copy the sequence (but do we need to define copy methods for lower layers? Note that tests are not passing now). This question was also brought up in #150
Note however that for this application, the sequence is already saved in Tomo-code.json before the WAIT is added
In my experience you need to have a __deepcopy__ method defined for all the objects to be deep copied. Here Pulse is the base object. The code above doesn't work without a deepcopy method. I guess I'm fine with not copying and loading the sequences from json as long as we document that process and put up some examples. My one concern is it starts to make creating axis descriptors comically obtuse. @grahamrow I think it's the extra meta data Auspex needs down the line that causes issues here. Do you have strong opinions on save-v-load?
Is there any danger in doing a deep copy of seqs before we get here:
QGL/QGL/Compiler.py
Lines 327 to 331 in 446ff4f
This mangles the seqs and even makes lines like
crash hard since the metadata construction is happening after this initial loop. This seems to work for me with minor changes to QGL's
Pulse
object:Assuming we're not doing something like GST (a case we can work around) is there any reason not to do this? Seems this would be an issue anytime you needed seqs or adata about them after you'd run
compile_to_hardware
The text was updated successfully, but these errors were encountered: