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
56de526c
Commit
56de526c
authored
5 years ago
by
Karim Ahmed
Browse files
Options
Downloads
Patches
Plain Diff
add conf to request_darks.py
parent
9d5b78c3
No related branches found
No related tags found
1 merge request
!245
add conf to request_darks.py
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
webservice/serve_overview.py
+3
-1
3 additions, 1 deletion
webservice/serve_overview.py
webservice/serve_overview.yaml
+4
-0
4 additions, 0 deletions
webservice/serve_overview.yaml
with
7 additions
and
1 deletion
webservice/serve_overview.py
+
3
−
1
View file @
56de526c
...
@@ -94,8 +94,10 @@ class RequestHandler(BaseHTTPRequestHandler):
...
@@ -94,8 +94,10 @@ class RequestHandler(BaseHTTPRequestHandler):
return
return
host
=
config
[
"
server-config
"
][
"
host
"
]
host
=
config
[
"
server-config
"
][
"
host
"
]
port
=
config
[
"
server-config
"
][
"
port
"
]
port
=
config
[
"
server-config
"
][
"
port
"
]
req_dark
=
config
[
"
scrpts-cnf
"
][
"
req-dark
"
]
python_v
=
config
[
"
scrpts-cnf
"
][
"
python-v
"
]
if
'
request_dark
'
in
pars
:
if
'
request_dark
'
in
pars
:
par_list
=
[
'
python
'
,
'
req
uest
_dark
s.py
'
,
'
--bkg
'
]
par_list
=
[
python
_v
,
req_dark
,
'
--bkg
'
]
del
pars
[
"
request_dark
"
]
del
pars
[
"
request_dark
"
]
for
k
,
v
in
pars
.
items
():
for
k
,
v
in
pars
.
items
():
par_list
.
append
(
'
--{}
'
.
format
(
str
(
k
).
replace
(
"
_
"
,
"
-
"
)))
par_list
.
append
(
'
--{}
'
.
format
(
str
(
k
).
replace
(
"
_
"
,
"
-
"
)))
...
...
This diff is collapsed.
Click to expand it.
webservice/serve_overview.yaml
+
4
−
0
View file @
56de526c
...
@@ -53,6 +53,10 @@ server-config:
...
@@ -53,6 +53,10 @@ server-config:
cal_db_interface
:
tcp://max-exfl016:8022
cal_db_interface
:
tcp://max-exfl016:8022
cal_db_timeout
:
30000
cal_db_timeout
:
30000
scrpts-cnf
:
req-dark
:
request_darks.py
python-v
:
python
web-service
:
web-service
:
job-db
:
./webservice_jobs.sqlite
job-db
:
./webservice_jobs.sqlite
cal-config
:
/home/xcal/calibration_config/default.yaml
cal-config
:
/home/xcal/calibration_config/default.yaml
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