Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
P
parser-phonopy
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container registry
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
This is an archived project. Repository and other project resources are read-only.
Show more breadcrumbs
nomad-lab
parser-phonopy
Commits
0bdd8ab6
Commit
0bdd8ab6
authored
4 years ago
by
Alvin Noe Ladines
Browse files
Options
Downloads
Patches
Plain Diff
Added error handler in reading fhiaims
parent
edec79da
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
phonopyparser/fhiaims_io.py
+3
-2
3 additions, 2 deletions
phonopyparser/fhiaims_io.py
with
3 additions
and
2 deletions
phonopyparser/fhiaims_io.py
+
3
−
2
View file @
0bdd8ab6
...
...
@@ -134,7 +134,8 @@ def read_forces_aims(cell_obj, supercell_matrix, displacement, sym, tol=1e-6, lo
check_var
=
True
break
if
not
check_var
:
raise
Exception
(
"
No phonon calculations found
"
)
logger
.
error
(
"
No phonon calculations found
"
)
return
set_of_forces
,
phonopy_obj
,
Relative_Path
os
.
chdir
(
"
../
"
)
Relative_Path
.
append
(
aims_out
)
supercell_calculated
=
read_aims_output
(
aims_out
)
...
...
@@ -162,6 +163,6 @@ def read_forces_aims(cell_obj, supercell_matrix, displacement, sym, tol=1e-6, lo
force
-=
drift_force
/
forces
.
shape
[
0
]
set_of_forces
.
append
(
forces
)
else
:
raise
Exception
(
"
calculated varies from expected supercell in FHI-aims output
%s
"
%
aims_out
)
logger
.
error
(
"
calculated varies from expected supercell in FHI-aims output
"
)
return
set_of_forces
,
phonopy_obj
,
Relative_Path
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