-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
4f9e236
commit 18e5171
Showing
6 changed files
with
5 additions
and
253 deletions.
There are no files selected for viewing
File renamed without changes.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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/ |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.