Skip to content

Commit

Permalink
moved checksum to before error assert for intraspecies DD fusion regr…
Browse files Browse the repository at this point in the history
…ession test analysis script.
  • Loading branch information
JustinRayAngus committed Jul 11, 2024
1 parent 80ec865 commit 9560b63
Showing 1 changed file with 6 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -45,11 +45,13 @@
V = (2e-3)**3 # simulation volume in m^3
sigma = dY_dt*(1+delta_ij)/(nD**2)/V*(1e2)**3

# Compare checksums with benchmark
test_name = os.path.split(os.getcwd())[1]
checksumAPI.evaluate_checksum(test_name, fn)

sigma_th = 2.603e-18
error = np.abs(sigma-sigma_th)/sigma_th
tolerance = 1e-2
print('error = ', error)
print('tolerance = ', tolerance)
assert error < tolerance

# Compare checksums with benchmark
test_name = os.path.split(os.getcwd())[1]
checksumAPI.evaluate_checksum(test_name, fn)

0 comments on commit 9560b63

Please sign in to comment.