Skip to content

Commit

Permalink
Try this.
Browse files Browse the repository at this point in the history
  • Loading branch information
jrood-nrel committed Nov 15, 2024
1 parent 9a7dcea commit fa7a0cb
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions Tests/test_masscons.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,10 @@ def test_conservation(self):
fdir = os.path.abspath(".")
fname = os.path.join(fdir, "datlog")
df = pd.read_csv(fname, sep="\\s+")
npt.assert_allclose(df.mass, df.mass[0], rtol=1e-13)
npt.assert_allclose(df.rho_E, df.rho_E[0], rtol=1e-13)
init_mass = df.mass[0]
npt.assert_allclose(df.mass, init_mass, rtol=1e-13)
init_rho_E = df.rho_E[0]
npt.assert_allclose(df.rho_E, init_rho_E, rtol=1e-13)


# ========================================================================
Expand Down

0 comments on commit fa7a0cb

Please sign in to comment.