Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
D
DetectorWriteSim
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Deploy
Releases
Container Registry
Model registry
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
EWMSCP
DetectorWriteSim
Commits
c3a3f271
Commit
c3a3f271
authored
1 year ago
by
Michael Reuscher
Browse files
Options
Downloads
Patches
Plain Diff
asapo tests
parent
070f29ad
No related branches found
No related tags found
1 merge request
!4
Python driver and data analysis part
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
README.md
+1
-1
1 addition, 1 deletion
README.md
simrunner/data_config_asapo.json
+11
-9
11 additions, 9 deletions
simrunner/data_config_asapo.json
simrunner/simulation.py
+1
-0
1 addition, 0 deletions
simrunner/simulation.py
with
13 additions
and
10 deletions
README.md
+
1
−
1
View file @
c3a3f271
# 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
...
...
This diff is collapsed.
Click to expand it.
simrunner/data_config_asapo.json
+
11
−
9
View file @
c3a3f271
{
{
"data_config_various"
:{
"data_config_various"
:{
"-n"
:
"
10
0"
,
"-n"
:
"
5
0"
,
"-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"
,
...
...
This diff is collapsed.
Click to expand it.
simrunner/simulation.py
+
1
−
0
View file @
c3a3f271
...
@@ -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
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment