API reference for Run() class¶
-
class
autoclasswrapper.
Run
(root_name='autoclass', tolerate_error=False)¶ Autoclass running script.
- Parameters
root_name (string, optional (default: "autoclass")) – Root name for input files and running script. Example: “autoclass” will lead to “autoclass.db2”, “autoclass.model”, “autoclass.sh”…
tolerate_error (bool, optional (default: False)) – If True, countinue generation of autoclass input files even if an error is encounter. If False, stop at first error.
-
had_error
¶ Set to True if an error has been found in the generation of autoclass input files.
- Type
bool (defaut False)
-
create_run_file
(*args, **kwargs)¶ Create bash script that runs AutoClass C.
-
create_run_file_test
(*args, **kwargs)¶ Create dummy script.
Scrit will wait for xx seconds while touching .log file every second.
- Parameters
time (int (default: 60), optional) – Time in seconds to wait.
-
handle_error
()¶ Handle error during data parsing and formating.
Function decorator.
- Parameters
f (function) –
- Returns
try_function
- Return type
function wrapped into error handler
-
run
(*args, **kwargs)¶ Run AutoClass C classification.
autoclass-c executable must be in PATH!
- Parameters
tag (string (default: ""), optional) – Tag to identify the autoclass run among other processes