def set_exports(self, value): # Validate for export_name in value.export: assert CAMEL_RE.match(export_name), ("Field %r is not camelCase" % export_name) with self.changes_squashed: self.exports.set_value(value) self.update_modified() self.update_block_endpoints()
def __init__(self, name: APartName, mri: AMri, initial_visibility: AInitialVisibility = False) -> None: super().__init__(name, mri, initial_visibility=initial_visibility, stateful=False) assert CAMEL_RE.match(name), ( "PandAAlternatingDivPart name %r should be camelCase" % name)
def __init__( self, name: APartName, mri: AMri, initial_visibility: AInitialVisibility = False, ) -> None: super().__init__(name, mri, initial_visibility=initial_visibility, stateful=False) assert CAMEL_RE.match( name), f"DoubleTriggerPart name {name} should be camelCase"
def __init__( self, name: APartName, mri: AMri, initial_visibility: AInitialVisibility = True ) -> None: super().__init__( name, mri, initial_visibility=initial_visibility, stateful=False ) assert CAMEL_RE.match(name), ( "PandAPulseTriggerPart name %r should be camelCase" % name ) # The stored generator duration and detector framesPerStep from # configure self.generator_duration = None self.frames_per_step = 1 # The panda Block we will be prodding self.panda = None # The detector Block we will be reading from self.detector = None
def __init__( self, name: APartName, mri: AMri, initial_visibility: AInitialVisibility = True, zero_delay: AZeroDelay = False, ) -> None: super().__init__(name, mri, initial_visibility=initial_visibility, stateful=False) assert CAMEL_RE.match( name), f"PandAPulseTriggerPart name {name!r} should be camelCase" # The stored generator duration and detector framesPerStep from # configure self.generator_duration = None self.frames_per_step = 1 # The panda Block we will be prodding self.panda = None # The detector Block we will be reading from self.detector = None # Whether to always set delay to zero self.zero_delay = zero_delay