Skip to content
Snippets Groups Projects
Commit c05f2eb4 authored by Wouter Deconinck's avatar Wouter Deconinck
Browse files

fix: cache calibrations in DETECTOR_PATH

parent e31e0bdd
Branches
Tags
1 merge request!322fix: cache calibrations in DETECTOR_PATH
...@@ -152,12 +152,12 @@ if __name__ == '__main__': ...@@ -152,12 +152,12 @@ if __name__ == '__main__':
file=f) file=f)
## run once inside global prefix to initialize artifacts in /opt/detectors ## run once inside global prefix to initialize artifacts in /opt/detectors
os.environ['DETECTOR_PATH'] = args.prefix os.environ['DETECTOR_PATH'] = args.prefix
cmd = f'bash -c \'cd {args.prefix} && source {prefix}/setup.sh && npdet_info print world_z {prefix}/share/{det}/{det}.xml\'' cmd = f'bash -c \'cd {args.prefix} && source {prefix}/setup.sh && checkGeometry -c {prefix}/share/{det}/{det}.xml\''
print(cmd) print(cmd)
os.system(cmd) os.system(cmd)
## run once inside specific prefix to initialize artifacts in $DETECTOR_PATH ## run once inside specific prefix to initialize artifacts in $DETECTOR_PATH
os.environ['DETECTOR_PATH'] = args.prefix os.environ['DETECTOR_PATH'] = args.prefix
cmd = f'bash -c \'cd {prefix} && source {prefix}/setup.sh && npdet_info print world_z {prefix}/share/{det}/{det}.xml\'' cmd = f'bash -c \'cd {prefix}/share/{det} && source {prefix}/setup.sh && checkGeometry -c {prefix}/share/{det}/{det}.xml\''
print(cmd) print(cmd)
os.system(cmd) os.system(cmd)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment