Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
nomad-lab
nomad-FAIR
Commits
3aae002b
Commit
3aae002b
authored
Jul 27, 2020
by
Markus Scheidgen
Browse files
Fix stuck processing on phonon processing error.
parent
76ea2752
Changes
1
Hide whitespace changes
Inline
Side-by-side
nomad/processing/data.py
View file @
3aae002b
...
...
@@ -457,10 +457,13 @@ class Calc(Proc):
self
.
_entry_metadata
.
dft
.
update_group_hash
()
self
.
_entry_metadata
.
encyclopedia
.
status
=
EncyclopediaMetadata
.
status
.
type
.
success
except
Exception
as
e
:
logger
.
error
(
"Could not retrieve method information for phonon calculation."
,
exception
=
e
)
if
self
.
_entry_metadata
.
encyclopedia
is
None
:
self
.
_entry_metadata
.
encyclopedia
=
EncyclopediaMetadata
()
self
.
_entry_metadata
.
encyclopedia
.
status
=
EncyclopediaMetadata
.
status
.
type
.
failure
logger
.
error
(
"Could not retrieve method information for phonon calculation."
,
exc_info
=
e
)
try
:
if
self
.
_entry_metadata
.
encyclopedia
is
None
:
self
.
_entry_metadata
.
encyclopedia
=
EncyclopediaMetadata
()
self
.
_entry_metadata
.
encyclopedia
.
status
=
EncyclopediaMetadata
.
status
.
type
.
failure
except
Exception
as
e
:
logger
.
error
(
"Could set encyclopedia status."
,
exc_info
=
e
)
finally
:
# persist the calc 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