Public Access
no the print in the experiment and result script are also printed
This commit is contained in:
1 parent
1bb92a9157
commit
9b9a0ec1df
4 files changed
+59
-9
No files matched your search
@@ -641,6 +641,7 @@ class DamarisGUI:
|
||||
res_code,
|
||||
backend,
|
||||
self.spool_dir,
|
||||
log_callback=self.log,
|
||||
clear_jobs=actual_config[ "del_jobs_after_execution" ],
|
||||
clear_results=actual_config[ "del_results_after_processing" ] )
|
||||
logger.debug("ScriptInterface creation took %.3fs", time.time() - script_interface_start)
|
||||
@@ -3957,7 +3958,7 @@ class ScriptInterface:
|
||||
"""
|
||||
|
||||
def __init__( self, exp_script=None, res_script=None, backend_executable=None, spool_dir="spool", clear_jobs=True,
|
||||
clear_results=True ):
|
||||
clear_results=True, log_callback=None ):
|
||||
"""
|
||||
run experiment scripts and result scripts
|
||||
"""
|
||||
@@ -3969,6 +3970,7 @@ class ScriptInterface:
|
||||
self.clear_jobs = clear_jobs
|
||||
self.clear_results = clear_results
|
||||
self.exp_handling = self.res_handling = None
|
||||
self._log_callback = log_callback
|
||||
|
||||
self.exp_writer = self.res_reader = self.back_driver = None
|
||||
if self.backend_executable is not None and self.backend_executable != "":
|
||||
@@ -3997,9 +3999,9 @@ class ScriptInterface:
|
||||
# get script engines
|
||||
self.exp_handling = self.res_handling = None
|
||||
if self.exp_script and self.exp_writer:
|
||||
self.exp_handling = ExperimentHandling.ExperimentHandling( self.exp_script, self.exp_writer, self.data )
|
||||
self.exp_handling = ExperimentHandling.ExperimentHandling( self.exp_script, self.exp_writer, self.data, self._log_callback )
|
||||
if self.res_script and self.res_reader:
|
||||
self.res_handling = ResultHandling.ResultHandling( self.res_script, self.res_reader, self.data )
|
||||
self.res_handling = ResultHandling.ResultHandling( self.res_script, self.res_reader, self.data, self._log_callback )
|
||||
|
||||
# start them
|
||||
if self.back_driver is not None:
|
||||
|
||||
Reference in new issue
Block a user