lyse.globals_diff

lyse.globals_diff(run1, run2, group=None)[source]

Take a diff of the globals between two runs.

Uses the labscript-utils:dict_diff function.

Parameters:
  • run1 (Run) – First Run to compare.

  • run2 (Run) – Second Run to compare.

  • group (str, optional) – When None (default), compare all groups. Otherwise, only compare globals in group.

Returns:

Dictionary of differences between globals in the form key:[val1,val2] pairs. Keys unique to either dictionary are returned as key:[val1,'-'] or key:['-',val2].

Return type:

dict