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

If you're not sure about the file name format, learn more about wheel file names.

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

Uploaded Python 2Python 3

File details

Details for the file phantasy_machines-6.1.3-py2.py3-none-any.whl.

File metadata

  • Download URL: phantasy_machines-6.1.3-py2.py3-none-any.whl
  • Upload date:
  • Size: 24.1 MB
  • Tags: Python 2, Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.8.0 colorama/0.4.4 importlib-metadata/6.6.0 keyring/23.5.0 pkginfo/1.8.2 readme-renderer/34.0 requests-toolbelt/0.9.1 requests/2.25.1 rfc3986/1.5.0 tqdm/4.65.0 urllib3/1.26.5 CPython/3.10.12

File hashes

Hashes for phantasy_machines-6.1.3-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 64090f4a75a8f2adb690d103ad92395030c1c8768194206c2a394aded61b2604
MD5 fd73e5846aea6858d167788ea567ec44
BLAKE2b-256 58cccb56d5cdcee45179e6b4c3b92427dd0847234b12444967eaabc92c099b87

See more details on using hashes here.

Supported by

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