Skip to main content

Machine configuration files for PHANTASY

Project description

machines

Configuration files for both virtual accelerator and physical FRIB accelerator.

Run with FLAME model engine:

phytool flame-vastart --mach <machine-name> --subm <segment-name> -v

machine-name could be: FRIB, FRIB_VA, segment-name defined in phantasy.ini file.

Model Machine with phantasy:

>>> import phantasy
>>>
>>> # e.g. machine-name: 'FRIB', segment: 'MEBT' (default if skipped)
>>> mp = phantasy.MachinePortal(machine='<machine-name>', segment='<segment-name>')
>>>
>>> # get all device types
>>> mp.get_all_types()
>>>
>>> # get elements by name/type/location
>>> mp.get_elements()
>>>
>>> # get elements regarding to reference elements
>>> mp.next_elements()
>>> lat = mp.work_lattice_conf
>>>
>>> # sync settings from accelerator (VA or REAL)
>>> lat.sync_settings(data_source='control')
>>>
>>> # sync settings from model to accelerator
>>> lat.sync_settings(data_source='model')
>>>
>>> # get the FLAME lattice file
>>> latfile, fm = lat.run()
>>> # ...

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distribution

phantasy_machines-6.1.3-py2.py3-none-any.whl (24.1 MB view hashes)

Uploaded Python 2 Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page