phantasy-machines


Namephantasy-machines JSON
Version 6.1.3 PyPI version JSON
download
home_pagehttps://github.com/phantasy-project/phantasy-machines
SummaryMachine configuration files for PHANTASY
upload_time2023-10-27 17:31:54
maintainer
docs_urlNone
authorTong Zhang
requires_python
license
keywords
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            # 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()
>>> # ...
```



            

Raw data

            {
    "_id": null,
    "home_page": "https://github.com/phantasy-project/phantasy-machines",
    "name": "phantasy-machines",
    "maintainer": "",
    "docs_url": null,
    "requires_python": "",
    "maintainer_email": "",
    "keywords": "",
    "author": "Tong Zhang",
    "author_email": "zhangt@frib.msu.edu",
    "download_url": "",
    "platform": null,
    "description": "# machines\nConfiguration files for both virtual accelerator and physical FRIB accelerator.\n\n### Run with FLAME model engine:\n\n```\nphytool flame-vastart --mach <machine-name> --subm <segment-name> -v\n```\n`machine-name` could be: `FRIB`, `FRIB_VA`, `segment-name` defined in `phantasy.ini` file.\n\n### Model Machine with `phantasy`:\n\n```\n>>> import phantasy\n>>>\n>>> # e.g. machine-name: 'FRIB', segment: 'MEBT' (default if skipped)\n>>> mp = phantasy.MachinePortal(machine='<machine-name>', segment='<segment-name>')\n>>>\n>>> # get all device types\n>>> mp.get_all_types()\n>>>\n>>> # get elements by name/type/location\n>>> mp.get_elements()\n>>>\n>>> # get elements regarding to reference elements\n>>> mp.next_elements()\n>>> lat = mp.work_lattice_conf\n>>>\n>>> # sync settings from accelerator (VA or REAL)\n>>> lat.sync_settings(data_source='control')\n>>>\n>>> # sync settings from model to accelerator\n>>> lat.sync_settings(data_source='model')\n>>>\n>>> # get the FLAME lattice file\n>>> latfile, fm = lat.run()\n>>> # ...\n```\n\n\n",
    "bugtrack_url": null,
    "license": "",
    "summary": "Machine configuration files for PHANTASY",
    "version": "6.1.3",
    "project_urls": {
        "Homepage": "https://github.com/phantasy-project/phantasy-machines"
    },
    "split_keywords": [],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "58cccb56d5cdcee45179e6b4c3b92427dd0847234b12444967eaabc92c099b87",
                "md5": "fd73e5846aea6858d167788ea567ec44",
                "sha256": "64090f4a75a8f2adb690d103ad92395030c1c8768194206c2a394aded61b2604"
            },
            "downloads": -1,
            "filename": "phantasy_machines-6.1.3-py2.py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "fd73e5846aea6858d167788ea567ec44",
            "packagetype": "bdist_wheel",
            "python_version": "py2.py3",
            "requires_python": null,
            "size": 24138509,
            "upload_time": "2023-10-27T17:31:54",
            "upload_time_iso_8601": "2023-10-27T17:31:54.170307Z",
            "url": "https://files.pythonhosted.org/packages/58/cc/cb56d5cdcee45179e6b4c3b92427dd0847234b12444967eaabc92c099b87/phantasy_machines-6.1.3-py2.py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2023-10-27 17:31:54",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "phantasy-project",
    "github_project": "phantasy-machines",
    "travis_ci": false,
    "coveralls": false,
    "github_actions": false,
    "lcname": "phantasy-machines"
}
        
Elapsed time: 0.28810s