Skip to main content

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


Download files

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

Source Distribution

genie_python-15.1.0rc1.tar.gz (159.3 kB view details)

Uploaded Source

Built Distribution

genie_python-15.1.0rc1-py3-none-any.whl (128.1 kB view details)

Uploaded Python 3

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

Hashes for genie_python-15.1.0rc1.tar.gz
Algorithm Hash digest
SHA256 5fef8eab27bcb54790c10eb68b66ef74b2a02e90c5c5031e6ad9860cad66be7a
MD5 c57ae3190d34f445c1a635bd1224369a
BLAKE2b-256 50bc07d2ecdb33100a26b9fbca4dc47585d06cd0c96c97084e6d69ccf3a5a2d9

See more details on using hashes here.

Provenance

The following attestation bundles were made for genie_python-15.1.0rc1.tar.gz:

Publisher: release.yml on ISISComputingGroup/genie

Attestations:

File details

Details for the file genie_python-15.1.0rc1-py3-none-any.whl.

File metadata

File hashes

Hashes for genie_python-15.1.0rc1-py3-none-any.whl
Algorithm Hash digest
SHA256 f8cdfad77422d012acb29495df77cc645c2eaf0363cbf48df89e1e1c03193f68
MD5 c2b34f7d46b4cc19c9ec175511547846
BLAKE2b-256 5ed24c0e5ab2f5fac31beb858c6de1fc8d3363647018646913cf4e72d682549b

See more details on using hashes here.

Provenance

The following attestation bundles were made for genie_python-15.1.0rc1-py3-none-any.whl:

Publisher: release.yml on ISISComputingGroup/genie

Attestations:

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