atip.load_sim#

Module responsible for handling the loading of simulator data sources.

Members

load

Load simulator data sources onto the lattice and its elements.

load_from_filepath

Load simulator data sources onto the lattice and its elements.

atip.load_sim.load_from_filepath(pytac_lattice, at_lattice_filepath, callback=None, disable_emittance=False)[source]#

Load simulator data sources onto the lattice and its elements.

Parameters:
  • pytac_lattice (pytac.lattice.Lattice) – An instance of a Pytac lattice.

  • at_lattice_filepath (str) – The path to a .mat file from which the Accelerator Toolbox lattice can be loaded.

  • callback (Callable) – To be called after completion of each round of physics calculations.

  • disable_emittance (bool) – Whether the emittance should be calculated.

Returns:

The same Pytac lattice object, but now with a simulator data source fully loaded onto it.

Return type:

pytac.lattice.Lattice

atip.load_sim.load(pytac_lattice, at_lattice, callback=None, disable_emittance=False)[source]#

Load simulator data sources onto the lattice and its elements.

Parameters:
  • pytac_lattice (pytac.lattice.Lattice) – An instance of a Pytac lattice.

  • at_lattice (at.lattice_object.Lattice) – An instance of an Accelerator Toolbox lattice object.

  • callback (Callable) – To be called after completion of each round of physics calculations.

  • disable_emittance (bool) – Whether the emittance should be calculated.

Returns:

The same Pytac lattice object, but now with a simulator data source fully loaded onto it.

Return type:

pytac.lattice.Lattice