Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
P
pycalibration
Manage
Activity
Members
Labels
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Model registry
Analyze
Contributor 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
calibration
pycalibration
Commits
c1d0da4c
Commit
c1d0da4c
authored
5 years ago
by
Steffen Hauf
Browse files
Options
Downloads
Patches
Plain Diff
Remove obsolete test script
parent
d3930db0
No related branches found
No related tags found
1 merge request
!56
Handle multiple detectors of the same type for one instrument, add convenience scripts
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
webservice/request_darks.py
+0
-2
0 additions, 2 deletions
webservice/request_darks.py
webservice/test_web.py
+0
-35
0 additions, 35 deletions
webservice/test_web.py
with
0 additions
and
37 deletions
webservice/request_darks.py
+
0
−
2
View file @
c1d0da4c
...
@@ -47,7 +47,5 @@ while True:
...
@@ -47,7 +47,5 @@ while True:
r
=
"
|
"
.
join
(
r
)
r
=
"
|
"
.
join
(
r
)
print
(
r
+
"
\r
"
,
end
=
'
'
,
flush
=
True
)
print
(
r
+
"
\r
"
,
end
=
'
'
,
flush
=
True
)
sleep
(
10
)
sleep
(
10
)
break
This diff is collapsed.
Click to expand it.
webservice/test_web.py
deleted
100644 → 0
+
0
−
35
View file @
d3930db0
import
sys
import
urllib.parse
import
zmq
con
=
zmq
.
Context
()
socket
=
con
.
socket
(
zmq
.
REQ
)
con
=
socket
.
connect
(
"
tcp://max-exfl016:5555
"
)
if
sys
.
argv
[
1
]
==
"
correct
"
:
msg
=
"'
,
'"
.
join
([
"
correct
"
,
"
11581
"
,
"
SASE1
"
,
"
FXE
"
,
"
201701
"
,
"
2052
"
,
"
373
"
,
"
1
"
])
# msg = "','".join(["correct", "20199", "SASE1", "FXE", "201831", "900037", "229"])
if
sys
.
argv
[
1
]
==
"
dark
"
:
msg
=
"'
,
'"
.
join
([
"
dark
"
,
"
20829
"
,
"
SASE1
"
,
"
SPB
"
,
"
201930
"
,
"
900062
"
,
"
(
\"
run-high
\"
,
\"
264
\"
)
"
,
"
(
\"
run-med
\"
,
\"
265
\"
)
"
,
"
(
\"
run-low
\"
,
\"
266
\"
)
"
])
if
sys
.
argv
[
1
]
==
"
upload-yaml
"
:
yaml
=
"""
SPB:
AGIPD:
inset: AGIPD
calfile: foo
mem-cells: 176
blc-noise: yes
blc-noise-threshold: 100
instance: AGIPD1M1
JUNGFRAU:
inset: DA02
calfile: xxx
FXE:
LPD:
inset: LPD
calfile: xxx
non-linear-gain: yes
"""
msg
=
"'
,
'"
.
join
([
"
upload-yaml
"
,
"
SASE1
"
,
"
SPB
"
,
"
201831
"
,
"
900039
"
,
urllib
.
parse
.
quote_plus
(
yaml
)])
socket
.
send
(
"
[
'
{}
'
]
"
.
format
(
msg
).
encode
())
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