laura package
Subpackages
- laura.models package
- Submodules
- laura.models.RF module
ChannelNamesLLRFChannelIndexLLRFChannelsBaseLLRFTimingLLRFTimingsLow_Level_RF_ElementPIDElementPIDPhaseRangePIDWeightRangeRFCavityElementRFCavityElement.attenuation_constantRFCavityElement.cell_lengthRFCavityElement.coupling_cell_lengthRFCavityElement.crestRFCavityElement.design_gammaRFCavityElement.design_powerRFCavityElement.frequencyRFCavityElement.mode_denominatorRFCavityElement.mode_numeratorRFCavityElement.n_cellsRFCavityElement.phaseRFCavityElement.shunt_impedanceRFCavityElement.structure_Type
RFDeflectingCavityElementRFHeartbeatElementRFModulatorElementRFProtectionElementTraceWakefieldElement
- laura.models._functions module
- laura.models.baseModels module
- laura.models.control module
ControlVariableControlVariable.apply()ControlVariable.descriptionControlVariable.dtypeControlVariable.expressionControlVariable.identifierControlVariable.protocolControlVariable.read_onlyControlVariable.serialize()ControlVariable.targetControlVariable.typeControlVariable.unitsControlVariable.validate_dtype()ControlVariable.value
ControlsInformationMirrorControlsInformationScreenControlsInformationShutterControlsInformationeval_expr()resolve_path()set_attr_by_path()
- laura.models.degauss module
- laura.models.diagnostic module
Beam_Arrival_Monitor_DiagnosticBeam_Position_Monitor_DiagnosticBunch_Length_Monitor_DiagnosticCamera_DiagnosticCamera_Diagnostic_Type()Camera_MaskCamera_Pixel_Results_IndicesCamera_Pixel_Results_NamesCamera_SensorCharge_DiagnosticDiagnosticElementManta_Camera_Diagnostic()Manta_Camera_Sensor()PCO_Camera_Diagnostic()PCO_Camera_Sensor()Screen_Diagnostic
- laura.models.electrical module
- laura.models.element module
ApertureBeam_Arrival_MonitorBeam_Position_MonitorBunch_Length_MonitorCameraChargeDiagnosticCollimatorCombined_CorrectorDiagnosticDipoleDriftElementFaraday_Cup_MonitorHorizontal_CorrectorIntegrated_Current_TransformerLaserLaserAttenuatorLaserEnergyMeterLaserHalfWavePlateLaserMirrorLightingLow_Level_RFMagnetMarkerNonLinearLensOctupolePIDPhysicalBaseElementPlasmaQuadrupoleRFCavityRFDeflectingCavityRFHeartbeatRFModulatorRFProtectionScreenSextupoleShutterSolenoidStageTwissMatchVacuumGaugeValveVertical_CorrectorWakefieldWall_Current_MonitorWigglerbaseElementbaseElement.namebaseElement.hardware_classbaseElement.hardware_typebaseElement.hardware_modelbaseElement.machine_areabaseElement.virtual_namebaseElement.aliasbaseElement.subelementbaseElement.CASCADING_RULESbaseElement.YAML_filenamebaseElement._find_field_paths()baseElement._get_nested_attribute()baseElement._handle_cascading_updates()baseElement._resolve_attribute_path()baseElement._set_nested_attribute()baseElement.escape_string_list()baseElement.flat()baseElement.from_CATAP()baseElement.hardware_classbaseElement.hardware_infobaseElement.hardware_typebaseElement.is_subelement()baseElement.machine_areabaseElement.namebaseElement.no_controlsbaseElement.subdirectorybaseElement.subelementbaseElement.to_CATAP()baseElement.validate_alias()baseElement.validate_name()baseElement.virtual_name
flatten()flow_listflow_list_rep()quoted_presenter()string_with_quotes
- laura.models.elementList module
BaseLatticeModelElementListMachineLayoutMachineLayout._basenameMachineLayout._filter_element_list()MachineLayout._get_all_element_names()MachineLayout._get_all_elements()MachineLayout._get_element_names()MachineLayout._lookup_index()MachineLayout.elementsMachineLayout.elements_between()MachineLayout.get_all_elements()MachineLayout.get_element()MachineLayout.master_lattice_locationMachineLayout.namesMachineLayout.sections
MachineModelMachineModel._build_layouts()MachineModel._build_sections_from_elements()MachineModel._default_pathMachineModel._layoutsMachineModel._section_definitionsMachineModel.append()MachineModel.default_pathMachineModel.elementsMachineModel.elements_between()MachineModel.get_all_elements()MachineModel.get_element()MachineModel.latticesMachineModel.layoutMachineModel.master_lattice_locationMachineModel.sectionMachineModel.sectionsMachineModel.update()MachineModel.validate_layout()MachineModel.validate_section()
SectionLatticechunks()dot()
- laura.models.exceptions module
- laura.models.laser module
- laura.models.lighting module
- laura.models.magnetic module
Dipole_MagnetFieldIntegralLinearSaturationFitLinearSaturationFit.I0LinearSaturationFit.I_maxLinearSaturationFit.KLToCurrent()LinearSaturationFit.KToCurrent()LinearSaturationFit.LLinearSaturationFit.aLinearSaturationFit.coefficientsLinearSaturationFit.currentToK()LinearSaturationFit.dLinearSaturationFit.fLinearSaturationFit.from_string()LinearSaturationFit.mLinearSaturationFit.update_from_string()
MagneticElementMagneticElement.Kn()MagneticElement.KnL()MagneticElement.field_integral_coefficientsMagneticElement.gradient()MagneticElement.half_gapMagneticElement.klMagneticElement.linear_saturation_coefficientsMagneticElement.settle_timeMagneticElement.skewMagneticElement.validate_field_integral_coefficients()
MultipoleMultipolesNonLinearLens_MagnetOctupole_MagnetPower()Quadrupole_MagnetSextupole_MagnetSolenoidFieldsSolenoid_MagnetSqrt()Wiggler_Magnet
- laura.models.manufacturer module
- laura.models.physical module
ElementErrorElementSurveyPhysicalElementPhysicalElement._physical_anglePhysicalElement.endPhysicalElement.lengthPhysicalElement.maximum_positionPhysicalElement.minimum_positionPhysicalElement.physical_anglePhysicalElement.rotated_position()PhysicalElement.rotation_matrixPhysicalElement.startPhysicalElement.validate_middle()PhysicalElement.validate_rotation()
PositionRotation
- laura.models.shutter module
- laura.models.simulation module
ApertureElementDiagnosticSimulationElementDriftSimulationElementDriftSimulationElement.csr_enableDriftSimulationElement.csrdzDriftSimulationElement.lsc_binsDriftSimulationElement.lsc_enableDriftSimulationElement.lsc_high_frequency_cutoff_endDriftSimulationElement.lsc_high_frequency_cutoff_startDriftSimulationElement.lsc_interpolateDriftSimulationElement.lsc_low_frequency_cutoff_endDriftSimulationElement.lsc_low_frequency_cutoff_startDriftSimulationElement.use_stupakov
MagnetSimulationElementMagnetSimulationElement.csr_binsMagnetSimulationElement.csr_enableMagnetSimulationElement.deltaLMagnetSimulationElement.edge1_effectsMagnetSimulationElement.edge2_effectsMagnetSimulationElement.edge_field_integralMagnetSimulationElement.edge_orderMagnetSimulationElement.field_amplitudeMagnetSimulationElement.integration_orderMagnetSimulationElement.isr_enableMagnetSimulationElement.n_kicksMagnetSimulationElement.n_slicesMagnetSimulationElement.nonlinearMagnetSimulationElement.smoothMagnetSimulationElement.smoothing_half_widthMagnetSimulationElement.sr_enable
PlasmaSimulationElementPlasmaSimulationElement.bunch_pusherPlasmaSimulationElement.dt_bunchPlasmaSimulationElement.dz_fieldsPlasmaSimulationElement.max_longitudinal_positionPlasmaSimulationElement.min_longitudinal_positionPlasmaSimulationElement.n_longitudinalPlasmaSimulationElement.n_outPlasmaSimulationElement.n_radialPlasmaSimulationElement.plasma_particles_per_cellPlasmaSimulationElement.plasma_pusherPlasmaSimulationElement.r_maxPlasmaSimulationElement.r_max_plasmaPlasmaSimulationElement.required_attrsPlasmaSimulationElement.wakefield_model
RFCavitySimulationElementRFCavitySimulationElement.body_focus_modelRFCavitySimulationElement.change_p0RFCavitySimulationElement.current_binsRFCavitySimulationElement.end1_focusRFCavitySimulationElement.end2_focusRFCavitySimulationElement.ez_peakRFCavitySimulationElement.field_amplitudeRFCavitySimulationElement.field_file_nameRFCavitySimulationElement.interpolate_current_binsRFCavitySimulationElement.lsc_binsRFCavitySimulationElement.n_kicksRFCavitySimulationElement.smoothRFCavitySimulationElement.smooth_current_binsRFCavitySimulationElement.t_columnRFCavitySimulationElement.trwakefileRFCavitySimulationElement.wakefileRFCavitySimulationElement.wx_columnRFCavitySimulationElement.wy_columnRFCavitySimulationElement.wz_columnRFCavitySimulationElement.z_columnRFCavitySimulationElement.zwakefile
SimulationElementTwissMatchSimulationElementTwissMatchSimulationElement.alpha_xTwissMatchSimulationElement.alpha_yTwissMatchSimulationElement.beta_xTwissMatchSimulationElement.beta_yTwissMatchSimulationElement.eta_xTwissMatchSimulationElement.eta_xpTwissMatchSimulationElement.eta_yTwissMatchSimulationElement.eta_ypTwissMatchSimulationElement.from_beam
WakefieldSimulationElementWakefieldSimulationElement.allow_long_beamWakefieldSimulationElement.bunched_beamWakefieldSimulationElement.change_momentumWakefieldSimulationElement.equal_gridWakefieldSimulationElement.factorWakefieldSimulationElement.interpolateWakefieldSimulationElement.interpolation_methodWakefieldSimulationElement.scale_field_exWakefieldSimulationElement.scale_field_eyWakefieldSimulationElement.scale_field_ezWakefieldSimulationElement.scale_field_hxWakefieldSimulationElement.scale_field_hyWakefieldSimulationElement.scale_field_hzWakefieldSimulationElement.scale_kickWakefieldSimulationElement.smoothWakefieldSimulationElement.subbinsWakefieldSimulationElement.t_columnWakefieldSimulationElement.wx_columnWakefieldSimulationElement.wy_columnWakefieldSimulationElement.wz_columnWakefieldSimulationElement.z_column
- Module contents
Submodules
laura.laura module
LAURA Main Module
The main class for handling a full particle accelerator lattice.
- class LAURA(*args, **kwargs)[source]
Bases:
MachineModelLAURA Main Class
The main class for handling a full particle accelerator lattice.
- Parameters:
args (
Any)kwargs (
Any)
- __all_elements(element_class=None, element_type=None)
Get a set of all elements of a given class and/or type
- Parameters:
element_class (
Union[str,list,None]) – Class of the element (e.g., ‘magnet’, ‘rf’, ‘diagnostic’)element_type (
Union[str,list,None]) – Type of the element (e.g., ‘quadrupole’, ‘dipole’, ‘BPM’)
- Return type:
set- Returns:
Set of element names
- __get_combined_corrector_sub_correctors(elem)
Split a Combined_Corrector into its sub-correctors
- Parameters:
elem (
str) – Name of the combined corrector element- Return type:
list[str]- Returns:
Names of sub-corrector elements (if they exist) or the original element name
- property all_beam_position_monitors: set
Get all BPM devices in the machine :return: Set of all BPM names
- property all_cameras: list
Get all camera devices in the machine :return: List of all camera device names
- property all_charge_diagnostics: set
Get all charge diagnostics in the machine :return: Set of all charge diagnostic names
- property all_combined_correctors: set
Get all combined corrector magnets in the machine :return: Set of all combined corrector magnet names
- property all_correctors: set
Get all corrector magnets in the machine :return: Set of all corrector magnet names
- property all_diagnostics: set
Get all diagnostic devices in the machine :return: Set of all diagnostic device names
- property all_dipoles: set
Get all dipole magnets in the machine :return: Set of all dipole magnet names
- property all_elements: set
Get all elements in the machine :return: Set of all element names
- property all_horizontal_correctors: set
Get all horizontal corrector magnets in the machine :return: Set of all horizontal corrector magnet names
- property all_magnets: set
Get all magnets in the machine :return: Set of all magnet names
- property all_position_diagnostics: set
Get all position diagnostic devices in the machine :return: Set of all position diagnostic device names
- property all_quadrupoles: set
Get all quadrupole magnets in the machine :return: Set of all quadrupole magnet names
- property all_rf_cavities: set
Get all rf cavities in the machine :return: Set of all cavity names
- property all_screens_and_cameras: Dict
Get all screens with their associated cameras in the machine :return: Dict of all screens with camera names
- property all_separate_magnets: set
Get all separate magnets in the machine :return: Set of all separate magnet names
- property all_sextupoles: set
Get all sextupole magnets in the machine :return: Set of all sextupole magnet names
- property all_shutters: set
Get all shutter elements in the machine :return: Set of all shutter element names
- property all_solenoids: set
Get all solenoid magnets in the machine :return: Set of all solenoid magnet names
- property all_vacuum_components: set
Get all vacuum components in the machine :return: Set of all vacuum component names
- property all_vertical_correctors: set
Get all vertical corrector magnets in the machine :return: Set of all vertical corrector magnet names
- createDrifts(end=None, start=None, path=None)[source]
Insert drifts into a sequence of ‘elements’
- Parameters:
end (
Optional[str]) – Name of the last element in the sequencestart (
Optional[str]) – Name of the first element in the sequencepath (
Optional[str]) – Name of the lattice path to use
- Return type:
Dict- Returns:
Dictionary of elements with drifts inserted
-
element_list:
Union[str,List[baseElement]] List containing all elements in the machine model, either as a path to a YAML file/directory or as a list of element objects.
-
exclude_keys:
Optional[List[str]] = None List of top-level keys to exclude when reading YAML files
- get_beam_position_monitors(end=None, start=None, path=None)[source]
Get all BPM devices between start and end
- Parameters:
end (
Optional[str]) – Name of the last element in the sequencestart (
Optional[str]) – Name of the first element in the sequencepath (
Optional[str]) – Name of the lattice path to use
- Return type:
list[str]- Returns:
List of BPM devices names
- get_cameras(end=None, start=None, path=None)[source]
Get all camera devices between start and end
- Parameters:
end (
Optional[str]) – Name of the last element in the sequencestart (
Optional[str]) – Name of the first element in the sequencepath (
Optional[str]) – Name of the lattice path to use
- Return type:
list[str]- Returns:
List of camera devices names
- get_charge_diagnostics(end=None, start=None, path=None)[source]
Get all charge diagnostic devices between start and end
- Parameters:
end (
Optional[str]) – Name of the last element in the sequencestart (
Optional[str]) – Name of the first element in the sequencepath (
Optional[str]) – Name of the lattice path to use
- Return type:
list[str]- Returns:
List of charge diagnostic devices names
- get_combined_correctors(end=None, start=None, path=None)[source]
Get all combined corrector magnets between start and end
- Parameters:
end (
Optional[str]) – Name of the last element in the sequencestart (
Optional[str]) – Name of the first element in the sequencepath (
Optional[str]) – Name of the lattice path to use
- Return type:
list[str]- Returns:
List of combined corrector magnet names
- get_correctors(end=None, start=None, path=None)[source]
Get all corrector magnets between start and end
- Parameters:
end (
Optional[str]) – Name of the last element in the sequencestart (
Optional[str]) – Name of the first element in the sequencepath (
Optional[str]) – Name of the lattice path to use
- Return type:
list[str]- Returns:
List of corrector magnet names
- get_diagnostics(end=None, start=None, path=None)[source]
Get all diagnostic devices between start and end
- Parameters:
end (
Optional[str]) – Name of the last element in the sequencestart (
Optional[str]) – Name of the first element in the sequencepath (
Optional[str]) – Name of the lattice path to use
- Return type:
list[str]- Returns:
List of diagnostic devices names
- get_dipoles(end=None, start=None, path=None)[source]
Get all dipole magnets between start and end
- Parameters:
end (
Optional[str]) – Name of the last element in the sequencestart (
Optional[str]) – Name of the first element in the sequencepath (
Optional[str]) – Name of the lattice path to use
- Return type:
list[str]- Returns:
List of dipole magnet names
- get_elements(end=None, start=None, path=None)[source]
Get all elements between start and end
- Parameters:
end (
Optional[str]) – Name of the last element in the sequencestart (
Optional[str]) – Name of the first element in the sequencepath (
Optional[str]) – Name of the lattice path to use
- Return type:
list[str]- Returns:
List of element names
- get_elements_s_pos(end=None, start=None, path=None)[source]
Get s positions of all elements between start and end
- Parameters:
end (
Optional[str]) – Name of the last element in the sequencestart (
Optional[str]) – Name of the first element in the sequencepath (
Optional[str]) – Name of the lattice path to use
- Return type:
Dict[str,float]- Returns:
Dictionary of element names and their s positions
- get_horizontal_correctors(end=None, start=None, path=None)[source]
Get all horizontal corrector magnets between start and end
- Parameters:
end (
Optional[str]) – Name of the last element in the sequencestart (
Optional[str]) – Name of the first element in the sequencepath (
Optional[str]) – Name of the lattice path to use
- Return type:
list[str]- Returns:
List of horizontal corrector magnet names
- get_lattice_correctors(end=None, start=None, path=None)[source]
Get all corrector magnets between start and end
- Parameters:
end (
Optional[str]) – Name of the last element in the sequencestart (
Optional[str]) – Name of the first element in the sequencepath (
Optional[str]) – Name of the lattice path to use
- Return type:
list[str]- Returns:
List of corrector magnet names
- get_magnets(end=None, start=None, path=None)[source]
Get all magnets between start and end
- Parameters:
end (
Optional[str]) – Name of the last element in the sequencestart (
Optional[str]) – Name of the first element in the sequencepath (
Optional[str]) – Name of the lattice path to use
- Return type:
list[str]- Returns:
List of magnet names
- get_position_diagnostics(end=None, start=None, path=None)[source]
Get all position diagnostic devices between start and end
- Parameters:
end (
Optional[str]) – Name of the last element in the sequencestart (
Optional[str]) – Name of the first element in the sequencepath (
Optional[str]) – Name of the lattice path to use
- Return type:
list[str]- Returns:
List of position diagnostic devices names
- get_quadrupoles(end=None, start=None, path=None)[source]
Get all quadrupole magnets between start and end
- Parameters:
end (
Optional[str]) – Name of the last element in the sequencestart (
Optional[str]) – Name of the first element in the sequencepath (
Optional[str]) – Name of the lattice path to use
- Return type:
list[str]- Returns:
List of quadrupole magnet names
- get_rf_cavities(end=None, start=None, path=None)[source]
Get all RF cavities between start and end
- Parameters:
end (
Optional[str]) – Name of the last element in the sequencestart (
Optional[str]) – Name of the first element in the sequencepath (
Optional[str]) – Name of the lattice path to use
- Return type:
list[str]- Returns:
List of RF cavity names
- get_screens_and_cameras(end=None, start=None, path=None)[source]
Get all screen devices with their associated cameras between start and end
- Parameters:
end (
Optional[str]) – Name of the last element in the sequencestart (
Optional[str]) – Name of the first element in the sequencepath (
Optional[str]) – Name of the lattice path to use
- Return type:
Dict[str,str]- Returns:
Dict of screens with camera names
- get_separate_magnets(end=None, start=None, path=None)[source]
Get all magnet between start and end and separate combined correctors into their sub-correctors
- Parameters:
end (
Optional[str]) – Name of the last element in the sequencestart (
Optional[str]) – Name of the first element in the sequencepath (
Optional[str]) – Name of the lattice path to use
- Return type:
list[str]- Returns:
List of magnet names
- get_sextupoles(end=None, start=None, path=None)[source]
Get all sectupole magnets between start and end
- Parameters:
end (
Optional[str]) – Name of the last element in the sequencestart (
Optional[str]) – Name of the first element in the sequencepath (
Optional[str]) – Name of the lattice path to use
- Return type:
list[str]- Returns:
List of sectupole magnet names
- get_shutters(end=None, start=None, path=None)[source]
Get all shutter devices between start and end
- Parameters:
end (
Optional[str]) – Name of the last element in the sequencestart (
Optional[str]) – Name of the first element in the sequencepath (
Optional[str]) – Name of the lattice path to use
- Return type:
list[str]- Returns:
List of shutter devices names
- get_solenoids(end=None, start=None, path=None)[source]
Get all solenoid magnets between start and end
- Parameters:
end (
Optional[str]) – Name of the last element in the sequencestart (
Optional[str]) – Name of the first element in the sequencepath (
Optional[str]) – Name of the lattice path to use
- Return type:
list[str]- Returns:
List of solenoid magnet names
- get_vacuum_components(end=None, start=None, path=None)[source]
Get all vacuum components between start and end
- Parameters:
end (
Optional[str]) – Name of the last element in the sequencestart (
Optional[str]) – Name of the first element in the sequencepath (
Optional[str]) – Name of the lattice path to use
- Return type:
list[str]- Returns:
List of vacuum component names
- get_vertical_correctors(end=None, start=None, path=None)[source]
Get all vertical corrector magnets between start and end
- Parameters:
end (
Optional[str]) – Name of the last element in the sequencestart (
Optional[str]) – Name of the first element in the sequencepath (
Optional[str]) – Name of the lattice path to use
- Return type:
list[str]- Returns:
List of vertical corrector magnet names
- validate_element_list()
Module contents
- class LAURA(*args, **kwargs)[source]
Bases:
MachineModelLAURA Main Class
The main class for handling a full particle accelerator lattice.
- Parameters:
args (
Any)kwargs (
Any)
- __all_elements(element_class=None, element_type=None)
Get a set of all elements of a given class and/or type
- Parameters:
element_class (
Union[str,list,None]) – Class of the element (e.g., ‘magnet’, ‘rf’, ‘diagnostic’)element_type (
Union[str,list,None]) – Type of the element (e.g., ‘quadrupole’, ‘dipole’, ‘BPM’)
- Return type:
set- Returns:
Set of element names
- __get_combined_corrector_sub_correctors(elem)
Split a Combined_Corrector into its sub-correctors
- Parameters:
elem (
str) – Name of the combined corrector element- Return type:
list[str]- Returns:
Names of sub-corrector elements (if they exist) or the original element name
- property all_beam_position_monitors: set
Get all BPM devices in the machine :return: Set of all BPM names
- property all_cameras: list
Get all camera devices in the machine :return: List of all camera device names
- property all_charge_diagnostics: set
Get all charge diagnostics in the machine :return: Set of all charge diagnostic names
- property all_combined_correctors: set
Get all combined corrector magnets in the machine :return: Set of all combined corrector magnet names
- property all_correctors: set
Get all corrector magnets in the machine :return: Set of all corrector magnet names
- property all_diagnostics: set
Get all diagnostic devices in the machine :return: Set of all diagnostic device names
- property all_dipoles: set
Get all dipole magnets in the machine :return: Set of all dipole magnet names
- property all_elements: set
Get all elements in the machine :return: Set of all element names
- property all_horizontal_correctors: set
Get all horizontal corrector magnets in the machine :return: Set of all horizontal corrector magnet names
- property all_magnets: set
Get all magnets in the machine :return: Set of all magnet names
- property all_position_diagnostics: set
Get all position diagnostic devices in the machine :return: Set of all position diagnostic device names
- property all_quadrupoles: set
Get all quadrupole magnets in the machine :return: Set of all quadrupole magnet names
- property all_rf_cavities: set
Get all rf cavities in the machine :return: Set of all cavity names
- property all_screens_and_cameras: Dict
Get all screens with their associated cameras in the machine :return: Dict of all screens with camera names
- property all_separate_magnets: set
Get all separate magnets in the machine :return: Set of all separate magnet names
- property all_sextupoles: set
Get all sextupole magnets in the machine :return: Set of all sextupole magnet names
- property all_shutters: set
Get all shutter elements in the machine :return: Set of all shutter element names
- property all_solenoids: set
Get all solenoid magnets in the machine :return: Set of all solenoid magnet names
- property all_vacuum_components: set
Get all vacuum components in the machine :return: Set of all vacuum component names
- property all_vertical_correctors: set
Get all vertical corrector magnets in the machine :return: Set of all vertical corrector magnet names
- createDrifts(end=None, start=None, path=None)[source]
Insert drifts into a sequence of ‘elements’
- Parameters:
end (
Optional[str]) – Name of the last element in the sequencestart (
Optional[str]) – Name of the first element in the sequencepath (
Optional[str]) – Name of the lattice path to use
- Return type:
Dict- Returns:
Dictionary of elements with drifts inserted
-
element_list:
Union[str,List[baseElement]] List containing all elements in the machine model, either as a path to a YAML file/directory or as a list of element objects.
-
exclude_keys:
Optional[List[str]] = None List of top-level keys to exclude when reading YAML files
- get_beam_position_monitors(end=None, start=None, path=None)[source]
Get all BPM devices between start and end
- Parameters:
end (
Optional[str]) – Name of the last element in the sequencestart (
Optional[str]) – Name of the first element in the sequencepath (
Optional[str]) – Name of the lattice path to use
- Return type:
list[str]- Returns:
List of BPM devices names
- get_cameras(end=None, start=None, path=None)[source]
Get all camera devices between start and end
- Parameters:
end (
Optional[str]) – Name of the last element in the sequencestart (
Optional[str]) – Name of the first element in the sequencepath (
Optional[str]) – Name of the lattice path to use
- Return type:
list[str]- Returns:
List of camera devices names
- get_charge_diagnostics(end=None, start=None, path=None)[source]
Get all charge diagnostic devices between start and end
- Parameters:
end (
Optional[str]) – Name of the last element in the sequencestart (
Optional[str]) – Name of the first element in the sequencepath (
Optional[str]) – Name of the lattice path to use
- Return type:
list[str]- Returns:
List of charge diagnostic devices names
- get_combined_correctors(end=None, start=None, path=None)[source]
Get all combined corrector magnets between start and end
- Parameters:
end (
Optional[str]) – Name of the last element in the sequencestart (
Optional[str]) – Name of the first element in the sequencepath (
Optional[str]) – Name of the lattice path to use
- Return type:
list[str]- Returns:
List of combined corrector magnet names
- get_correctors(end=None, start=None, path=None)[source]
Get all corrector magnets between start and end
- Parameters:
end (
Optional[str]) – Name of the last element in the sequencestart (
Optional[str]) – Name of the first element in the sequencepath (
Optional[str]) – Name of the lattice path to use
- Return type:
list[str]- Returns:
List of corrector magnet names
- get_diagnostics(end=None, start=None, path=None)[source]
Get all diagnostic devices between start and end
- Parameters:
end (
Optional[str]) – Name of the last element in the sequencestart (
Optional[str]) – Name of the first element in the sequencepath (
Optional[str]) – Name of the lattice path to use
- Return type:
list[str]- Returns:
List of diagnostic devices names
- get_dipoles(end=None, start=None, path=None)[source]
Get all dipole magnets between start and end
- Parameters:
end (
Optional[str]) – Name of the last element in the sequencestart (
Optional[str]) – Name of the first element in the sequencepath (
Optional[str]) – Name of the lattice path to use
- Return type:
list[str]- Returns:
List of dipole magnet names
- get_elements(end=None, start=None, path=None)[source]
Get all elements between start and end
- Parameters:
end (
Optional[str]) – Name of the last element in the sequencestart (
Optional[str]) – Name of the first element in the sequencepath (
Optional[str]) – Name of the lattice path to use
- Return type:
list[str]- Returns:
List of element names
- get_elements_s_pos(end=None, start=None, path=None)[source]
Get s positions of all elements between start and end
- Parameters:
end (
Optional[str]) – Name of the last element in the sequencestart (
Optional[str]) – Name of the first element in the sequencepath (
Optional[str]) – Name of the lattice path to use
- Return type:
Dict[str,float]- Returns:
Dictionary of element names and their s positions
- get_horizontal_correctors(end=None, start=None, path=None)[source]
Get all horizontal corrector magnets between start and end
- Parameters:
end (
Optional[str]) – Name of the last element in the sequencestart (
Optional[str]) – Name of the first element in the sequencepath (
Optional[str]) – Name of the lattice path to use
- Return type:
list[str]- Returns:
List of horizontal corrector magnet names
- get_lattice_correctors(end=None, start=None, path=None)[source]
Get all corrector magnets between start and end
- Parameters:
end (
Optional[str]) – Name of the last element in the sequencestart (
Optional[str]) – Name of the first element in the sequencepath (
Optional[str]) – Name of the lattice path to use
- Return type:
list[str]- Returns:
List of corrector magnet names
- get_magnets(end=None, start=None, path=None)[source]
Get all magnets between start and end
- Parameters:
end (
Optional[str]) – Name of the last element in the sequencestart (
Optional[str]) – Name of the first element in the sequencepath (
Optional[str]) – Name of the lattice path to use
- Return type:
list[str]- Returns:
List of magnet names
- get_position_diagnostics(end=None, start=None, path=None)[source]
Get all position diagnostic devices between start and end
- Parameters:
end (
Optional[str]) – Name of the last element in the sequencestart (
Optional[str]) – Name of the first element in the sequencepath (
Optional[str]) – Name of the lattice path to use
- Return type:
list[str]- Returns:
List of position diagnostic devices names
- get_quadrupoles(end=None, start=None, path=None)[source]
Get all quadrupole magnets between start and end
- Parameters:
end (
Optional[str]) – Name of the last element in the sequencestart (
Optional[str]) – Name of the first element in the sequencepath (
Optional[str]) – Name of the lattice path to use
- Return type:
list[str]- Returns:
List of quadrupole magnet names
- get_rf_cavities(end=None, start=None, path=None)[source]
Get all RF cavities between start and end
- Parameters:
end (
Optional[str]) – Name of the last element in the sequencestart (
Optional[str]) – Name of the first element in the sequencepath (
Optional[str]) – Name of the lattice path to use
- Return type:
list[str]- Returns:
List of RF cavity names
- get_screens_and_cameras(end=None, start=None, path=None)[source]
Get all screen devices with their associated cameras between start and end
- Parameters:
end (
Optional[str]) – Name of the last element in the sequencestart (
Optional[str]) – Name of the first element in the sequencepath (
Optional[str]) – Name of the lattice path to use
- Return type:
Dict[str,str]- Returns:
Dict of screens with camera names
- get_separate_magnets(end=None, start=None, path=None)[source]
Get all magnet between start and end and separate combined correctors into their sub-correctors
- Parameters:
end (
Optional[str]) – Name of the last element in the sequencestart (
Optional[str]) – Name of the first element in the sequencepath (
Optional[str]) – Name of the lattice path to use
- Return type:
list[str]- Returns:
List of magnet names
- get_sextupoles(end=None, start=None, path=None)[source]
Get all sectupole magnets between start and end
- Parameters:
end (
Optional[str]) – Name of the last element in the sequencestart (
Optional[str]) – Name of the first element in the sequencepath (
Optional[str]) – Name of the lattice path to use
- Return type:
list[str]- Returns:
List of sectupole magnet names
- get_shutters(end=None, start=None, path=None)[source]
Get all shutter devices between start and end
- Parameters:
end (
Optional[str]) – Name of the last element in the sequencestart (
Optional[str]) – Name of the first element in the sequencepath (
Optional[str]) – Name of the lattice path to use
- Return type:
list[str]- Returns:
List of shutter devices names
- get_solenoids(end=None, start=None, path=None)[source]
Get all solenoid magnets between start and end
- Parameters:
end (
Optional[str]) – Name of the last element in the sequencestart (
Optional[str]) – Name of the first element in the sequencepath (
Optional[str]) – Name of the lattice path to use
- Return type:
list[str]- Returns:
List of solenoid magnet names
- get_vacuum_components(end=None, start=None, path=None)[source]
Get all vacuum components between start and end
- Parameters:
end (
Optional[str]) – Name of the last element in the sequencestart (
Optional[str]) – Name of the first element in the sequencepath (
Optional[str]) – Name of the lattice path to use
- Return type:
list[str]- Returns:
List of vacuum component names
- get_vertical_correctors(end=None, start=None, path=None)[source]
Get all vertical corrector magnets between start and end
- Parameters:
end (
Optional[str]) – Name of the last element in the sequencestart (
Optional[str]) – Name of the first element in the sequencepath (
Optional[str]) – Name of the lattice path to use
- Return type:
list[str]- Returns:
List of vertical corrector magnet names
- validate_element_list()