runtimes#

class perceptivo.runtimes.runtime.Runtime(**kwargs)#

Bases: perceptivo.root.Perceptivo_Object

Root object for the various perceptivo runtime objects, Patient, and clinician.Clinician.

(at the moment empty, but kept as a scaffold for shared functionality)

property procs: List[subprocess.Popen]#

List of processes opened by this runtime agent!

Returns

typing.List[subprocess.Popen]

abstract property prefs_class: Type[perceptivo.prefs.Prefs]#
load_prefs(prefs_file: Optional[pathlib.Path] = None) Union[perceptivo.prefs.Prefs, perceptivo.prefs.Patient_Prefs, perceptivo.prefs.Clinician_Prefs]#

Load prefs file. If defaults haven’t already been dumped to a prefs.json file, do so.

Parameters

prefs_file (Path) – prefs.json file to load. if None, use Runtime.prefs_file

Returns

perceptivo.prefs.Prefs a subtype of prefs, specified by Runtime.prefs_class

classmethod make_default_prefs(path: Optional[pathlib.Path] = None)#
perceptivo.runtimes.runtime.base_args(parser: argparse.ArgumentParser) argparse.ArgumentParser#