runmanager
Functions
|
backward compatability, for globals files which don't have expansion groups. |
|
Compiles labscript_file with the run file, returning the processes return code, stdout and stderr. |
|
Compiles labscript_file with run_file. |
Creates a run file output_path, using all the globals from globals_files. |
|
Same as compile_labscript_with_globals_files, except it launches a thread to do |
|
|
Compiles labscript_file with run_files. |
|
This function copies the group source_groupname from source_globals_file to dest_globals_file and renames the new group so that there is no name collision. |
|
|
|
|
|
Return the difference between two dictionaries as a dictionary of key: [val1, val2] pairs. |
|
Takes a dictionary of globals as returned by get_globals. |
|
Expands iterable globals according to their expansion settings. |
|
Return a list of start and end indices for where comments are in given Python source. |
|
Flattens the data structure of the globals. |
|
returns a dictionary of group_name: h5_path pairs from a list of h5_files. |
|
|
|
Takes a dictionary of group_name: h5_file pairs and pulls the globals out of the groups in their files. |
|
|
|
|
|
Returns the evaluated globals for a shot, for use by labscript or lyse. |
|
|
|
|
|
Given two sets of globals groups, perform a diff of the raw and evaluated globals. |
|
|
|
|
|
Ensure that a string is a valid name for an hdf5 group. |
|
|
|
Creates a run file output_path, using all the globals from globals_files. |
|
Does what it says. |
|
Does what it says. |
|
|
|
|
|
|
|
Generate the details for a new sequence: the toplevel attrs sequence_date, sequence_index, sequence_id; and the the output directory and filename prefix for the shot files, according to labconfig settings. |
|
Return the next sequence index for sequences in the given base directory (i.e. <experiment_shot_storage>/<script_basename>) and the date of the given datetime object, and increment the sequence index atomically on disk if increment=True. |
Removes comments from source code, leaving it otherwise intact, and returns it. |
|
|
|
|
|
|
|
|
|
|
Classes
|
Exceptions
An exception class so that error handling code can tell when a parsing exception was caused by a mismatch with the expansion mode |