5 from pathlib
import Path
10 from basf2
import B2INFO, logging, LogLevel, LogInfo
11 currentInfo = logging.get_info(LogLevel.INFO)
12 logging.set_info(LogLevel.INFO, currentInfo | LogInfo.TIMESTAMP)
14 from caf
import backends
18 probcut = float(sys.argv[1])
if len(sys.argv) == 2
else 0.001
22 with open(
'runlist')
as runlist:
23 lines = runlist.readlines()
25 input_files.append(line.rstrip(
'\n'))
39 job1.output_dir = str(Path(root_dir).absolute())
40 job1.working_dir = str(Path(root_dir).absolute())
43 job1.cmd = [
'basf2',
'run_collector.py', str(probcut)]
45 job1.input_sandbox_files.append(
"run_collector.py")
54 job1.input_files = input_files
59 job1.max_files_per_subjob = 1
61 job1.backend_args[
'queue'] =
's'
70 B2INFO(
"Are we done?")
72 B2INFO(
"Not done yet, will sleep")