labscript.labscript.labscript_init

labscript_init(hdf5_filename, labscript_file=None, new=False, overwrite=False, load_globals_values=True)[source]

Initialises labscript and prepares for compilation.

Parameters:
  • hdf5_filename (str) – Path to shot file to compile.

  • labscript_file – Handle to the labscript file.

  • new (bool, optional) – If True, ensure a new shot file is created.

  • overwrite (bool, optional) – If True, overwrite existing shot file, if it exists.

  • load_globals_values (bool, optional) – If True, load global values from the existing shot file.