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
90214234
Commit
90214234
authored
4 years ago
by
Thomas Kluyver
Browse files
Options
Downloads
Patches
Plain Diff
Use local copy of config file by default in update_mdc.py
parent
8382049d
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
webservice/update_mdc.py
+2
-1
2 additions, 1 deletion
webservice/update_mdc.py
with
2 additions
and
1 deletion
webservice/update_mdc.py
+
2
−
1
View file @
90214234
import
argparse
import
argparse
import
os.path
as
osp
import
yaml
import
yaml
from
metadata_client.metadata_client
import
MetadataClient
from
metadata_client.metadata_client
import
MetadataClient
...
@@ -6,7 +7,7 @@ from metadata_client.metadata_client import MetadataClient
...
@@ -6,7 +7,7 @@ from metadata_client.metadata_client import MetadataClient
parser
=
argparse
.
ArgumentParser
(
parser
=
argparse
.
ArgumentParser
(
description
=
'
Update run status at MDC for a given run id.
'
)
description
=
'
Update run status at MDC for a given run id.
'
)
parser
.
add_argument
(
'
--conf-file
'
,
type
=
str
,
help
=
'
Path to webservice config
'
,
parser
.
add_argument
(
'
--conf-file
'
,
type
=
str
,
help
=
'
Path to webservice config
'
,
default
=
'
/home/xcal/calibration_webservice_deployed/webservice/
webservice.yaml
'
)
# noqa
default
=
osp
.
join
(
osp
.
dirname
(
__file__
),
'
webservice.yaml
'
)
)
parser
.
add_argument
(
'
--flg
'
,
type
=
str
,
choices
=
[
"
NA
"
,
"
R
"
,
"
A
"
],
parser
.
add_argument
(
'
--flg
'
,
type
=
str
,
choices
=
[
"
NA
"
,
"
R
"
,
"
A
"
],
help
=
'
Status flag for MDC request: NA - not available, R - running, A - available.
'
)
# noqa
help
=
'
Status flag for MDC request: NA - not available, R - running, A - available.
'
)
# noqa
parser
.
add_argument
(
'
--rid
'
,
type
=
int
,
help
=
'
Run id from MDC
'
)
parser
.
add_argument
(
'
--rid
'
,
type
=
int
,
help
=
'
Run id from MDC
'
)
...
...
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