Skip to content

Commit

Permalink
test fixup
Browse files Browse the repository at this point in the history
  • Loading branch information
bocklund committed Jul 22, 2024
1 parent 6ac5acd commit 207d544
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/test_scheil_solidification.py
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ def test_equilibrium_solidification_result_properties():
assert num_temperatures == len(sol_res.fraction_solid)
assert all([num_temperatures == len(np) for np in sol_res.phase_amounts.values()])
assert all([num_temperatures == len(liq_comps) for liq_comps in sol_res.phase_compositions[sol_res.liquid_phase_name].values()])
assert all([(num_temperatures == len(nphase)) for nphase in sol_res.cum_phase_amounts.values()])
assert all([num_temperatures == len(nphase) for nphase in sol_res.cum_phase_amounts.values()])
# The final cumulative solid phase amounts is 1.0
assert np.isclose(np.sum([amnts[-1] for amnts in sol_res.cum_phase_amounts.values()]), 1.0)
# The final instantaneous phase amounts is not 1.0 (only the amount of new solid phase added
Expand Down

0 comments on commit 207d544

Please sign in to comment.