Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
Coscine Python SDK
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Deploy
Releases
Model registry
Analyze
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Coscine
community features
Coscine Python SDK
Commits
c975af8c
Commit
c975af8c
authored
2 years ago
by
Romin
Browse files
Options
Downloads
Patches
Plain Diff
Temporary fix for class controlled metadata values | Update to 0.7.4
parent
e2bdb61c
Branches
Branches containing commit
Tags
v0.7.4
Tags containing commit
No related merge requests found
Changes
2
Pipelines
3
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
src/coscine/__about__.py
+1
-1
1 addition, 1 deletion
src/coscine/__about__.py
src/coscine/form.py
+2
-1
2 additions, 1 deletion
src/coscine/form.py
with
3 additions
and
2 deletions
src/coscine/__about__.py
+
1
−
1
View file @
c975af8c
...
@@ -28,7 +28,7 @@ __title__ = "coscine"
...
@@ -28,7 +28,7 @@ __title__ = "coscine"
# Current package version
# Current package version
# Do not set version to 1.0.0 before Coscine end of pilot phase
# Do not set version to 1.0.0 before Coscine end of pilot phase
__version__
=
"
0.7.
3
"
__version__
=
"
0.7.
4
"
# Short package description
# Short package description
__summary__
=
"
The Coscine Python SDK is a pythonic interface to
"
\
__summary__
=
"
The Coscine Python SDK is a pythonic interface to
"
\
...
...
This diff is collapsed.
Click to expand it.
src/coscine/form.py
+
2
−
1
View file @
c975af8c
...
@@ -333,7 +333,8 @@ class InputForm(MutableMapping):
...
@@ -333,7 +333,8 @@ class InputForm(MutableMapping):
def
add_value
(
self
,
key
:
str
,
value
:
object
,
raw
:
bool
=
False
)
->
None
:
def
add_value
(
self
,
key
:
str
,
value
:
object
,
raw
:
bool
=
False
)
->
None
:
if
not
self
.
is_valid
(
key
,
value
,
raw
):
if
not
self
.
is_valid
(
key
,
value
,
raw
):
raise
ValueError
(
f
"
Invalid value for key
'
{
key
}
'
:
{
value
}
"
)
raise
ValueError
(
f
"
Invalid value for key
'
{
key
}
'
:
{
value
}
"
)
value
=
self
.
parse_value
(
key
,
value
,
raw
)
if
not
raw
:
value
=
self
.
parse_value
(
key
,
value
)
if
not
self
.
path
(
key
)
in
self
.
_values
:
if
not
self
.
path
(
key
)
in
self
.
_values
:
self
.
_values
[
self
.
path
(
key
)]
=
[
value
]
self
.
_values
[
self
.
path
(
key
)]
=
[
value
]
else
:
else
:
...
...
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