Instrument control & scripting for the ISIS Neutron & Muon source
Project description
genie_python
The ISIS Python-based instrument control and scripting library.
Instrument initialisation
By default when setting an instrument the init_default.py file is loaded. This file checks for the existence of a folder called C:\Instrument\Settings\config\NDX%INSTNAME%\Python and adds this to the sys path if it does. If this path exists and contains a file called init_%INSTNAME%.py, it will load it too.
On the NDX any files in C:\Instrument\Settings\config\NDX%INSTNAME%\Python can be added to SVN for safe keeping.
Python modules can be imported directly from the C:\Instrument\Settings\config\NDX%INSTNAME%\Python directory. If running on a client it is necessary to have a copy of the Python directory for the instrument being connected to in the correct location.
Folders inside the Python directory must have a __init__.py
file for them to be available to be imported.
Start-up
The line "from genie_python import *" in genie_startup is responsible for loading all the genie_python stuff! This file also contains code for disabling quickedit and for making genie_python guess the instrument name.
As genie_python is running inside IPython we use c.TerminalIPythonApp.exec_files to run genie_start.py, so everything is imported correctly.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file genie_python-15.1.0rc1.tar.gz
.
File metadata
- Download URL: genie_python-15.1.0rc1.tar.gz
- Upload date:
- Size: 159.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/5.1.1 CPython/3.12.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5fef8eab27bcb54790c10eb68b66ef74b2a02e90c5c5031e6ad9860cad66be7a |
|
MD5 | c57ae3190d34f445c1a635bd1224369a |
|
BLAKE2b-256 | 50bc07d2ecdb33100a26b9fbca4dc47585d06cd0c96c97084e6d69ccf3a5a2d9 |
Provenance
The following attestation bundles were made for genie_python-15.1.0rc1.tar.gz
:
Publisher:
release.yml
on ISISComputingGroup/genie
-
Statement type:
https://in-toto.io/Statement/v1
- Predicate type:
https://docs.pypi.org/attestations/publish/v1
- Subject name:
genie_python-15.1.0rc1.tar.gz
- Subject digest:
5fef8eab27bcb54790c10eb68b66ef74b2a02e90c5c5031e6ad9860cad66be7a
- Sigstore transparency entry: 149258036
- Sigstore integration time:
- Predicate type:
File details
Details for the file genie_python-15.1.0rc1-py3-none-any.whl
.
File metadata
- Download URL: genie_python-15.1.0rc1-py3-none-any.whl
- Upload date:
- Size: 128.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/5.1.1 CPython/3.12.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | f8cdfad77422d012acb29495df77cc645c2eaf0363cbf48df89e1e1c03193f68 |
|
MD5 | c2b34f7d46b4cc19c9ec175511547846 |
|
BLAKE2b-256 | 5ed24c0e5ab2f5fac31beb858c6de1fc8d3363647018646913cf4e72d682549b |
Provenance
The following attestation bundles were made for genie_python-15.1.0rc1-py3-none-any.whl
:
Publisher:
release.yml
on ISISComputingGroup/genie
-
Statement type:
https://in-toto.io/Statement/v1
- Predicate type:
https://docs.pypi.org/attestations/publish/v1
- Subject name:
genie_python-15.1.0rc1-py3-none-any.whl
- Subject digest:
f8cdfad77422d012acb29495df77cc645c2eaf0363cbf48df89e1e1c03193f68
- Sigstore transparency entry: 149258038
- Sigstore integration time:
- Predicate type: