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
61af67e3
Commit
61af67e3
authored
Feb 20, 2020
by
Markus Scheidgen
Browse files
Don't reprocess calcs that do not match anymore.
parent
b4689fe9
Pipeline
#69549
passed with stages
in 18 minutes and 5 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
nomad/processing/data.py
View file @
61af67e3
...
...
@@ -188,14 +188,19 @@ class Calc(Proc):
instead of creating it initially, we are just updating the existing
records.
"""
logger
=
self
.
get_logger
()
parser
=
match_parser
(
self
.
mainfile
,
self
.
upload_files
,
strict
=
False
)
if
parser
is
None
:
logger
.
error
(
# Use the upload logger, to not create a log file for this processing.
# We will probably remove these calculations and don't want to be left
# with a ghost log file.
self
.
upload
.
get_logger
().
error
(
'no parser matches during re-process, use the old parser'
,
calc_id
=
self
.
calc_id
)
elif
self
.
parser
!=
parser
.
name
:
self
.
errors
=
[
'no matching parser found during re-processing'
]
return
logger
=
self
.
get_logger
()
if
self
.
parser
!=
parser
.
name
:
self
.
parser
=
parser
.
name
logger
.
info
(
'different parser matches during re-process, use new parser'
,
...
...
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