-
Notifications
You must be signed in to change notification settings - Fork 26
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Switch from intelligent save to intelligent load #697
Conversation
c47998c
to
1e0a320
Compare
Use the concept of Settings that can be: - Created from a Device - Stored to YAML - Retrieved from YAML - Added to other Settings - Applied to a Device
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is really neat! Most of my comments are just to help with readability
It would also be a good idea to test this on a real PandA before merging |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
As discussed on slack, after testing this on a real panda, it seems like panda.children()
only gives the children for the blocks which have been type hinted. This means that anything outside of the signals in
class CommonPandaBlocks(Device):
pulse: DeviceVector[PulseBlock]
seq: DeviceVector[SeqBlock]
pcomp: DeviceVector[PcompBlock]
pcap: PcapBlock
data: DataBlock
don't get saved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good!
This is resolved as discussed offline |
Fixes #16