zero.liso.runner module

Tools for running LISO directly

exception zero.liso.runner.LisoError(message, script_path=None, *args, **kwargs)[source]

Bases: Exception

class zero.liso.runner.LisoRunner(script_path)[source]

Bases: object

LISO runner

Parameters

script_path (str) – Path to LISO script to run.

run(liso_path=None, output_path=None, plot=False, parse_output=True)[source]

Run LISO script using a local LISO binary and handle the results

Parameters
  • liso_path (str, optional) – Path to local LISO binary. If not specified, the value of the environment variable defined in .liso.LISO_PATH_ENV_VAR is used.

  • output_path (str, optional) – Path to save LISO output file to.

  • plot (bool, optional) – Plot the results using LISO.

  • parse_output (bool, optional) – Parse the output from LISO.

Returns

LisoOutputParser – The parsed LISO output.

Raises

ValueError – If the LISO path cannot be determined.