Skip to content
Snippets Groups Projects
Commit c3a3f271 authored by Michael Reuscher's avatar Michael Reuscher
Browse files

asapo tests

parent 070f29ad
No related branches found
No related tags found
1 merge request!4Python driver and data analysis part
# DetectorWriteSim make# DetectorWriteSim
Simulation program for typical photon science detector workloads (new wheel...) with measurement of data storage performance Simulation program for typical photon science detector workloads (new wheel...) with measurement of data storage performance
......
{ {
"data_config_various":{ "data_config_various":{
"-n": "100", "-n": "50",
"-i": "0.1s", "-i": "0.1s",
"-N": "99", "-N": "1",
"--asapo": "test", "--outputHandler": "asapo",
"--beamline": "beamline", "--beamTime": "asapo_test",
"--beamlineID": "beamlineID"}, "--token": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJleHAiOjk1NzE3MTAyMTYsImp0aSI6Ind0ZmlzdGhpcyIsInN1YiI6ImJ0X2FzYXBvX3Rlc3QiLCJFeHRyYUNsYWltcyI6eyJBY2Nlc3NUeXBlcyI6WyJ3cml0ZSIsIndyaXRlcmF3IiwicmVhZCJdfX0.cz6R_kVf4yh7IJD6bJjDdgTaxPN3txudZx9DE6WaTtk",
"--endpoint": "localhost:8400"},
"data_config_long":{ "data_config_long":{
"-s": "1024", "-s": "1024",
"-n": "100", "-n": "100",
"-i": "0.1s", "-i": "0.1s",
"-N": "4", "-N": "1",
"--asapo": "test", "--outputHandler": "asapo",
"--beamline": "beamline", "--beamTime": "asapo_test",
"--beamlineID": "beamlineID"}, "--token": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJleHAiOjk1NzE3MTAyMTYsImp0aSI6Ind0ZmlzdGhpcyIsInN1YiI6ImJ0X2FzYXBvX3Rlc3QiLCJFeHRyYUNsYWltcyI6eyJBY2Nlc3NUeXBlcyI6WyJ3cml0ZSIsIndyaXRlcmF3IiwicmVhZCJdfX0.cz6R_kVf4yh7IJD6bJjDdgTaxPN3txudZx9DE6WaTtk",
"--endpoint": "localhost:8400"},
"data_config_help":{ "data_config_help":{
"note": "this is only a help an it is never used by the simrunner programm", "note": "this is only a help an it is never used by the simrunner programm",
"--burstInterval": "event interval in a burst default: 1000000", "--burstInterval": "event interval in a burst default: 1000000",
......
...@@ -75,6 +75,7 @@ def local_simulation(sim_path, event, output_path): ...@@ -75,6 +75,7 @@ def local_simulation(sim_path, event, output_path):
e_list.append(k) e_list.append(k)
e_list.append(v) e_list.append(v)
command = [sim_path] + e_list command = [sim_path] + e_list
print(command)
result = subprocess.run(command, capture_output=True, text=True) result = subprocess.run(command, capture_output=True, text=True)
output = result.stdout output = result.stdout
errors = result.stderr errors = result.stderr
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment