Skip to content

Commit

Permalink
some changes
Browse files Browse the repository at this point in the history
  • Loading branch information
gelzinyte committed Jul 22, 2024
1 parent 6a18c9b commit ab53d8a
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions wfl/calculators/espresso.py
Original file line number Diff line number Diff line change
Expand Up @@ -55,8 +55,6 @@ def __init__(self, keep_files="default", rundir_prefix="run_QE_",

kwargs_command = deepcopy(kwargs)

assert "profile" in kwargs_command

# WFLFileIOCalculator is a mixin, will call remaining superclass constructors for us
super().__init__(keep_files=keep_files, rundir_prefix=rundir_prefix,
workdir=workdir, scratchdir=scratchdir, **kwargs_command)
Expand Down Expand Up @@ -86,9 +84,6 @@ def calculate(self, atoms=None, properties=_default_properties, system_changes=a
calculation_succeeded = True
if 'DFT_FAILED_ESPRESSO' in atoms.info:
del atoms.info['DFT_FAILED_ESPRESSO']
if "__calculator_output_prefix" in atoms.info:
save_calc_results(atoms, prefix=atoms.info["__calculator_output_prefix"], properties=properties)
atoms.info["__calculator_results_saved"] = True
except Exception as exc:
atoms.info['DFT_FAILED_ESPRESSO'] = True
calculation_succeeded = False
Expand Down

0 comments on commit ab53d8a

Please sign in to comment.