https://github.com/danporter/i16_script_generator
Python module and GUIs for automatic creation of experiment scripts.
https://github.com/danporter/i16_script_generator
Last synced: about 1 year ago
JSON representation
Python module and GUIs for automatic creation of experiment scripts.
- Host: GitHub
- URL: https://github.com/danporter/i16_script_generator
- Owner: DanPorter
- Created: 2022-10-31T06:27:49.000Z (over 3 years ago)
- Default Branch: master
- Last Pushed: 2022-11-28T09:33:55.000Z (over 3 years ago)
- Last Synced: 2025-02-08T09:45:37.302Z (over 1 year ago)
- Language: Python
- Size: 154 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# i16_script_generator
Python module and GUIs for automatic creation of experiment scripts.
### Features
The script editing window has the following features:
- Script timing - analyse script and determine estimate of how long it will take.
- Buttons to add new loops and scans
- Scan command GUI to create and insert custom scan commands
- Python syntax highlighting, including beamline commands
- Auto-tab, easy-indenting, commenting etc.
**Version 1.0**
By Dan Porter, PhD
Diamond Light Source Ltd.
2022

#### Usage:
Start the GUI from a terminal
```text
$ python -m i16_script_generator
```
Or, start the window from a python script:
```python
from i16_script_generator import ScriptGenerator
filename = 'mm12345-1/temp_dep.py'
with open(filename) as f:
script = f.read()
ScriptGenerator(filename, script)
```
For comments, queries or bugs - email [dan.porter@diamond.ac.uk](mailto:dan.porter@diamond.ac.uk)
# Installation
**Requirements:**
Python 3+ with packages: *Numpy*.
BuiltIn packages used: *sys*, *os*, *re*, *datetime*, *Tkinter*, *ttk*
Download latest version from [GitHub](https://github.com/DanPorter/i16_script_generator), then run the file
```text
$ git clone https://github.com/DanPorter/i16_script_generator.git
$ cd i16_script_generator
$ python -m i16_script_generator
```