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
......
{
"data_config_various":{
"-n": "100",
"-n": "50",
"-i": "0.1s",
"-N": "99",
"--asapo": "test",
"--beamline": "beamline",
"--beamlineID": "beamlineID"},
"-N": "1",
"--outputHandler": "asapo",
"--beamTime": "asapo_test",
"--token": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJleHAiOjk1NzE3MTAyMTYsImp0aSI6Ind0ZmlzdGhpcyIsInN1YiI6ImJ0X2FzYXBvX3Rlc3QiLCJFeHRyYUNsYWltcyI6eyJBY2Nlc3NUeXBlcyI6WyJ3cml0ZSIsIndyaXRlcmF3IiwicmVhZCJdfX0.cz6R_kVf4yh7IJD6bJjDdgTaxPN3txudZx9DE6WaTtk",
"--endpoint": "localhost:8400"},
"data_config_long":{
"-s": "1024",
"-n": "100",
"-i": "0.1s",
"-N": "4",
"--asapo": "test",
"--beamline": "beamline",
"--beamlineID": "beamlineID"},
"-N": "1",
"--outputHandler": "asapo",
"--beamTime": "asapo_test",
"--token": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJleHAiOjk1NzE3MTAyMTYsImp0aSI6Ind0ZmlzdGhpcyIsInN1YiI6ImJ0X2FzYXBvX3Rlc3QiLCJFeHRyYUNsYWltcyI6eyJBY2Nlc3NUeXBlcyI6WyJ3cml0ZSIsIndyaXRlcmF3IiwicmVhZCJdfX0.cz6R_kVf4yh7IJD6bJjDdgTaxPN3txudZx9DE6WaTtk",
"--endpoint": "localhost:8400"},
"data_config_help":{
"note": "this is only a help an it is never used by the simrunner programm",
"--burstInterval": "event interval in a burst default: 1000000",
......
......@@ -75,6 +75,7 @@ def local_simulation(sim_path, event, output_path):
e_list.append(k)
e_list.append(v)
command = [sim_path] + e_list
print(command)
result = subprocess.run(command, capture_output=True, text=True)
output = result.stdout
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