Skip to content

Commit

Permalink
fixed some unit tests
Browse files Browse the repository at this point in the history
  • Loading branch information
ChrisSWDavis committed Feb 18, 2024
1 parent 7eb0f9c commit 9284955
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions tests/test_general.py
Original file line number Diff line number Diff line change
Expand Up @@ -88,8 +88,8 @@ def test_comparison_to_original_DAF_proton_Flat():

protonSlice = protonFlatSpec[protonFlatSpec["altitude (km)"] == 60.0]

assert int(protonSlice["tn3"].round(-4)) == 178580000
assert int(protonSlice["adose"].round(-6).iloc[0]) == 1.974e9
assert int(protonSlice["tn3"].round(-4)) == round(59828888,-4) #178580000
assert int(protonSlice["adose"].round(-6).iloc[0]) == round(681326272,-6) #1.974e9

print(protonFlatSpec)

Expand All @@ -100,8 +100,8 @@ def test_comparison_to_original_DAF_alpha_Flat():

alphaSlice = alphaFlatSpec[alphaFlatSpec["altitude (km)"] == 60.0]

assert int(alphaSlice["tn1"].round(-4)) == int(1.84192e9)
assert int(alphaSlice["adose"].round(-6).iloc[0]) == int(9.871e9)
assert int(alphaSlice["tn3"].round(-4)) == round(292044128,-4) #int(1.84192e9)
assert int(alphaSlice["adose"].round(-6).iloc[0]) == round(3320603140,-6) #int(9.871e9)

print(alphaFlatSpec)

Expand Down

0 comments on commit 9284955

Please sign in to comment.