Table of Contents
Name | Direction | Type | Default | Description |
---|---|---|---|---|
RunNumber | Input | number | Mandatory | Extracts the IPTS number for a run |
Instrument | Input | string | Empty uses default instrument. Allowed values: [‘’, ‘ARCS’, ‘BSS’, ‘CNCS’, ‘CORELLI’, ‘DAS’, ‘EQSANS’, ‘HYS’, ‘MANDI’, ‘NOM’, ‘PG3’, ‘REF_L’, ‘REF_M’, ‘SEQ’, ‘SNAP’, ‘SWANS’, ‘TOPAZ’, ‘USANS’, ‘VENUS’, ‘VIS’, ‘VULCAN’, ‘BIOSANS’, ‘CG2’, ‘GPSANS’, ‘HB1’, ‘HB1A’, ‘HB2A’, ‘HB2B’, ‘HB2C’, ‘HB2D’, ‘HB3’, ‘HB3A’, ‘HIRESSANS’] | |
Directory | Output | string |
This returns a string the full path to the IPTS shared folder to allow for saving of files in accessible user folders (e.g. shared).
Warning
This only works at ORNL.
Example - IPTS directory for default instrument
This will vary based on your default instrument.
print GetIPTS(12345)
Output:
/SNS/PG3/IPTS-8111/
Example - IPTS directory for specific instrument
Being explicit about the instrument gives the same result for everyone.
print GetIPTS(Instrument='NOM', RunNumber=12345)
Output:
/SNS/NOM/IPTS-8687/
Categories: Algorithms | Utility\ORNL
Python: GetIPTS.py (last modified: 2017-09-06)