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
676c2fe3
Commit
676c2fe3
authored
5 years ago
by
Karim Ahmed
Browse files
Options
Downloads
Patches
Plain Diff
avoid using reservation in the cmd
parent
b5d5040f
No related branches found
Branches containing commit
No related tags found
Tags containing commit
1 merge request
!196
avoid using reservation in the cmd
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
webservice/request_darks.py
+4
-2
4 additions, 2 deletions
webservice/request_darks.py
with
4 additions
and
2 deletions
webservice/request_darks.py
+
4
−
2
View file @
676c2fe3
...
@@ -46,8 +46,10 @@ if "run_low" in args and args["run_low"]:
...
@@ -46,8 +46,10 @@ if "run_low" in args and args["run_low"]:
if
"
run
"
in
args
and
args
[
"
run
"
]:
if
"
run
"
in
args
and
args
[
"
run
"
]:
parm_list
+=
[
"
(
\"
run
\"
,
\"
{}
\"
)
"
.
format
(
args
[
"
run
"
])]
parm_list
+=
[
"
(
\"
run
\"
,
\"
{}
\"
)
"
.
format
(
args
[
"
run
"
])]
if
"
reservation
"
in
args
and
args
[
"
reservation
"
]:
# Avoid giving a reservation parameter after the ITDM changes
parm_list
+=
[
"
(
\"
reservation
\"
,
\"
{}
\"
)
"
.
format
(
args
[
"
reservation
"
])]
# for giving xcal high priority by default.
#if "reservation" in args and args["reservation"]:
#parm_list += ["(\"reservation\", \"{}\")".format(args["reservation"])]
msg
=
"'
,
'"
.
join
(
parm_list
)
msg
=
"'
,
'"
.
join
(
parm_list
)
socket
.
send
(
"
[
'
{}
'
]
"
.
format
(
msg
).
encode
())
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