Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
nomad-lab
nomad-FAIR
Commits
857c6ee6
Commit
857c6ee6
authored
Jan 20, 2022
by
Markus Scheidgen
Browse files
Allow to re-process published data with not matching parser.
parent
cc321502
Pipeline
#120216
passed with stages
in 27 minutes and 9 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
nomad/processing/data.py
View file @
857c6ee6
...
...
@@ -929,9 +929,11 @@ class Entry(Proc):
if
parser
is
None
:
# Should only be possible if the upload is published and we have
logger
.
warn
(
'no parser matches during process
, not updating the entry
'
)
logger
.
warn
(
'no parser matches during process'
)
self
.
warnings
=
[
'no matching parser found during processing'
]
else
:
parser
=
parser_dict
[
self
.
parser_name
]
if
parser
is
not
None
:
should_parse
=
True
parser_changed
=
self
.
parser_name
!=
parser
.
name
and
parser_dict
[
self
.
parser_name
].
name
!=
parser
.
name
if
parser_changed
:
...
...
@@ -940,6 +942,10 @@ class Entry(Proc):
'different parser matches during process, use new parser'
,
parser
=
parser
.
name
)
self
.
parser_name
=
parser
.
name
# Parser renamed
else
:
should_parse
=
False
logger
.
error
(
'could not determine a perser for this entry'
)
self
.
errors
=
[
'could not determine a parser for this entry'
]
if
should_parse
:
self
.
set_last_status_message
(
'Initializing metadata'
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment