Skip to content

Commit

Permalink
more fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
jan-janssen committed Jan 8, 2024
1 parent 0836b22 commit 995216f
Show file tree
Hide file tree
Showing 7 changed files with 9 additions and 9 deletions.
4 changes: 2 additions & 2 deletions atomistics/calculators/ase.py
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ def calc_static_with_ase(
output_keys=OutputStatic.keys(),
):
return OutputStatic(
**{k: getattr(ASEExecutor, k) for k in OutputStatic.fields()}
**{k: getattr(ASEExecutor, k) for k in OutputStatic.keys()}
).get(
ASEExecutor(ase_structure=structure, ase_calculator=ase_calculator),
*output_keys,
Expand All @@ -120,7 +120,7 @@ def _calc_md_step_with_ase(
structure.calc = ase_calculator
MaxwellBoltzmannDistribution(atoms=structure, temperature_K=temperature)
ASEOutputMolecularDynamics = OutputMolecularDynamics(
**{k: getattr(ASEExecutor, k) for k in OutputMolecularDynamics.fields()}
**{k: getattr(ASEExecutor, k) for k in OutputMolecularDynamics.keys()}
)
cache = {q: [] for q in output_keys}
for i in range(int(run / thermo)):
Expand Down
2 changes: 1 addition & 1 deletion atomistics/calculators/qe.py
Original file line number Diff line number Diff line change
Expand Up @@ -208,7 +208,7 @@ def calc_static_with_qe(
calculation_name=calculation_name, working_directory=working_directory
)
return OutputStatic(
**{k: getattr(QEStaticParser, k) for k in OutputStatic.fields()}
**{k: getattr(QEStaticParser, k) for k in OutputStatic.keys()}
).get(QEStaticParser(filename=output_file_name), *output_keys)


Expand Down
2 changes: 1 addition & 1 deletion atomistics/workflows/elastic/workflow.py
Original file line number Diff line number Diff line change
Expand Up @@ -62,5 +62,5 @@ def analyse_structures(self, output_dict, output_keys=OutputElastic.keys()):
self._data["e0"] = ene0
self._data["A2"] = A2
return OutputElastic(
**{k: getattr(ElasticProperties, k) for k in OutputElastic.fields()}
**{k: getattr(ElasticProperties, k) for k in OutputElastic.keys()}
).get(ElasticProperties(elastic_matrix=elastic_matrix), *output_keys)
2 changes: 1 addition & 1 deletion atomistics/workflows/evcurve/debye.py
Original file line number Diff line number Diff line change
Expand Up @@ -230,7 +230,7 @@ def get_thermal_properties(
output_keys=OutputThermodynamic.keys(),
):
return OutputThermodynamic(
**{k: getattr(DebyeThermalProperties, k) for k in OutputThermodynamic.fields()}
**{k: getattr(DebyeThermalProperties, k) for k in OutputThermodynamic.keys()}
).get(
DebyeThermalProperties(
fit_dict=fit_dict,
Expand Down
2 changes: 1 addition & 1 deletion atomistics/workflows/evcurve/workflow.py
Original file line number Diff line number Diff line change
Expand Up @@ -178,7 +178,7 @@ def analyse_structures(
self._fit_dict = OutputEnergyVolumeCurve(
**{
k: getattr(EnergyVolumeCurveProperties, k)
for k in OutputEnergyVolumeCurve.fields()
for k in OutputEnergyVolumeCurve.keys()
}
).get(
EnergyVolumeCurveProperties(
Expand Down
4 changes: 2 additions & 2 deletions atomistics/workflows/phonons/workflow.py
Original file line number Diff line number Diff line change
Expand Up @@ -234,7 +234,7 @@ def analyse_structures(self, output_dict, output_keys=OutputPhonons.keys()):
forces_lst = [output_dict[k] for k in sorted(output_dict.keys())]
self.phonopy.forces = forces_lst
self._phonopy_dict = OutputPhonons(
**{k: getattr(PhonopyProperties, k) for k in OutputPhonons.fields()}
**{k: getattr(PhonopyProperties, k) for k in OutputPhonons.keys()}
).get(
PhonopyProperties(
phonopy_instance=self.phonopy,
Expand Down Expand Up @@ -296,7 +296,7 @@ def get_thermal_properties(
return OutputThermodynamic(
**{
k: getattr(PhonopyThermalProperties, k)
for k in OutputThermodynamic.fields()
for k in OutputThermodynamic.keys()
}
).get(PhonopyThermalProperties(phonopy_instance=self.phonopy), *output_keys)

Expand Down
2 changes: 1 addition & 1 deletion atomistics/workflows/quasiharmonic.py
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@ def get_thermal_properties(
return OutputThermodynamic(
**{
k: getattr(QuasiHarmonicThermalProperties, k)
for k in OutputThermodynamic.fields()
for k in OutputThermodynamic.keys()
}
).get(
QuasiHarmonicThermalProperties(
Expand Down

0 comments on commit 995216f

Please sign in to comment.