vishack.data.diag

Library for interfacing with the diagnostic tools command diag.

Functions

make_script(path, lines[, overwrite])

Create a script and make it executable

run_measurement(path[, saveas, remove_tmp])

Run a measurement set up by a diaggui XML file.

vishack.data.diag.make_script(path, lines, overwrite=False)

Create a script and make it executable

Parameters
  • path (string) – The path of the script

  • lines (list of strings) – Scripting commands to be written on the script.

  • overwrite (boolean, optional) – Overwrite if the path exists, if not, the file will be saved as a different name. Defaults to False.

vishack.data.diag.run_measurement(path, saveas=None, remove_tmp=True)

Run a measurement set up by a diaggui XML file.

Parameters
  • path (string) – The path of the diaggui XML file

  • saveas (string, optional) – Save the measurement as a different file when finished measurement. Defaults to None. If None, it is same as path

  • remove_tmp (boolean, optional) – Remove any temporary files that are used to trigger this measurement. Defaults to True.