Skip to content

Commit

Permalink
next try
Browse files Browse the repository at this point in the history
  • Loading branch information
jan-janssen committed Oct 3, 2024
1 parent df68149 commit a5bc45b
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 9 deletions.
16 changes: 8 additions & 8 deletions tests/convert.py
Original file line number Diff line number Diff line change
Expand Up @@ -146,16 +146,16 @@ def convert_sphinx_job_dict(job_dict: dict) -> SphinxJob:
ric_qn=None,
eval_forces=SphinxEvalForces(file=sphinx_input_parameter_dict["sphinx"]["main"]["evalForces"]["file"]),
scf_diag=ScfDiag(
rho_mixing=sphinx_input_parameter_dict["sphinx"]["main"]["scfDiag"]["rhoMixing"],
spin_mixing=sphinx_input_parameter_dict["sphinx"]["main"]["scfDiag"]["spinMixing"],
delta_energy=sphinx_input_parameter_dict["sphinx"]["main"]["scfDiag"]["dEnergy"],
max_steps=sphinx_input_parameter_dict["sphinx"]["main"]["scfDiag"]["maxSteps"],
rho_mixing=sphinx_input_parameter_dict["sphinx"]["main"]["scfDiag"][0]["rhoMixing"],
spin_mixing=sphinx_input_parameter_dict["sphinx"]["main"]["scfDiag"][0]["spinMixing"],
delta_energy=sphinx_input_parameter_dict["sphinx"]["main"]["scfDiag"][0]["dEnergy"],
max_steps=sphinx_input_parameter_dict["sphinx"]["main"]["scfDiag"][0]["maxSteps"],
preconditioner=SphinxPreConditioner(
type=sphinx_input_parameter_dict["sphinx"]["main"]["scfDiag"]["preconditioner"]["type"],
scaling=sphinx_input_parameter_dict["sphinx"]["main"]["scfDiag"]["preconditioner"]["scaling"],
spin_scaling=sphinx_input_parameter_dict["sphinx"]["main"]["scfDiag"]["preconditioner"]["spinScaling"],
type=sphinx_input_parameter_dict["sphinx"]["main"]["scfDiag"][0]["preconditioner"]["type"],
scaling=sphinx_input_parameter_dict["sphinx"]["main"]["scfDiag"][0]["preconditioner"]["scaling"],
spin_scaling=sphinx_input_parameter_dict["sphinx"]["main"]["scfDiag"][0]["preconditioner"]["spinScaling"],
),
block_ccg={},
block_ccg=sphinx_input_parameter_dict["sphinx"]["main"]["scfDiag"][0]["blockCCG"],
),
)
return SphinxJob(
Expand Down
2 changes: 1 addition & 1 deletion tests/test_pyiron_atomistics_live.py
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ def test_sphinx_calc_minimize(self):
slash='ignore',
)
job_sphinx = convert_sphinx_job_dict(job_dict[job.job_name])
self.assertEqual(job_sphinx.calculation_output.generic.energy_tot[-1], 228.78315943905295 * ureg.eV)
self.assertEqual(job_sphinx.calculation_output.generic.energy_tot[-1], -228.78315943905295 * ureg.eV)

def test_sphinx_calc_static(self):
ureg = UnitRegistry()
Expand Down

0 comments on commit a5bc45b

Please sign in to comment.