GetIPTS v1

../_images/GetIPTS-v1_dlg.png

GetIPTS dialog.

Summary

Extracts the IPTS number from a run using FileFinder

Properties

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’, ‘HB2D’, ‘HB3’, ‘HB3A’, ‘HIRESSANS’, ‘WAND’]
Directory Output string    

Description

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.

Usage

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