Skip to content
Snippets Groups Projects
Commit a19c83c5 authored by christopher dilks's avatar christopher dilks
Browse files

modified: benchmarks/rich/scripts/simulate.py

parent 705d3108
No related branches found
No related tags found
No related merge requests found
......@@ -194,10 +194,10 @@ paramList=f'params_{outputName}'
#os.system(f'npdet_info'); print(sep) #########
#os.system(f'npdet_info search {XRICH} --value {compactFileFull} > {paramList}.py')
with open(paramList+'.py','w') as paramListFile:
subprocess.run(shlex.split(f'npdet_info search {XRICH} --value {compactFileFull}'),stdout=paramListFile)
subprocess.call(shlex.split(f'npdet_info search {XRICH} --value {compactFileFull}'),stdout=paramListFile)
paramListFile.close()
#print("** compact file params **"); os.system(f'cat {paramList}.py'); print(sep) #########
print("** compact file params **"); subprocess.run(shlex.split(f'cat {paramList}.py')); print(sep) #########
print("** compact file params **"); subprocess.call(shlex.split(f'cat {paramList}.py')); print(sep) #########
sys.path.append(os.getcwd())
params = importlib.import_module(paramList)
......@@ -363,7 +363,7 @@ cmd += " --enableG4GPS"
print(sep)
print(cmd)
print(sep)
subprocess.run(shlex.split(cmd))
subprocess.call(shlex.split(cmd))
### cleanup
os.remove(m.name) # remove macro
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment