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 a followup to #545. I'm trying to do similar things to @r-srinivas, but most of my subcomponents inherit from HasEnvironment and not EnvExperiment (since the subcomponents don't have run methods). I'd like HasEnvironment to have the same prepare method as EnvExperiment, where it calls the prepare method of its children. Would it be possible to implement this?
The text was updated successfully, but these errors were encountered:
HasEnvironment just provides access to the dataset, devices, etc. without the prepare/run/analyze structure that comes with Experiment and relates to the pipeline stages of the scheduler. So not in ARTIQ. But you can implement it yourself by copy-pasting this small bit of ARTIQ code where you define prepare (self.children is provided by HasEnvironment):
This is a followup to #545. I'm trying to do similar things to @r-srinivas, but most of my subcomponents inherit from HasEnvironment and not EnvExperiment (since the subcomponents don't have run methods). I'd like HasEnvironment to have the same prepare method as EnvExperiment, where it calls the prepare method of its children. Would it be possible to implement this?
The text was updated successfully, but these errors were encountered: