Skip to content

Commit

Permalink
Reintroduce m_package
Browse files Browse the repository at this point in the history
  • Loading branch information
ndaelman committed Nov 14, 2024
1 parent fdae671 commit e26e7ba
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion electronicparsers/magres/parser.py
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@
ElectricFieldGradient,
SpinSpinCoupling,
)
from .metainfo.magres import m_package
from ..utils import BeyondDFTWorkflowsParser


Expand Down Expand Up @@ -438,7 +439,7 @@ def parse(self, filepath, archive, logger):

# Create Run with Program information
sec_run = Run()
calculation_params = self.magres_file_parser.get('calculation')
calculation_params = self.magres_file_parser.get('calculation', {})
program_name = calculation_params.get('code', '')
if program_name != 'CASTEP':
self.logger.error(
Expand Down

0 comments on commit e26e7ba

Please sign in to comment.