Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
File renamed without changes.
121 changes: 0 additions & 121 deletions Jenkinsfile

This file was deleted.

97 changes: 0 additions & 97 deletions Jenkinsfile_linux

This file was deleted.

20 changes: 5 additions & 15 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,21 +1,11 @@
# genie_python

The ISIS Python-based instrument control and scripting library.
Instrument control and scripting library at the ISIS Neutron & Muon source.

## 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.
Documentation: https://isiscomputinggroup.github.io/genie/genie_python

On the NDX any files in C:\Instrument\Settings\config\NDX%INSTNAME%\Python can be added to SVN for safe keeping.
Source: https://github.com/ISISComputingGroup/genie

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.
PyPi: https://pypi.org/project/genie_python/
Loading