Skip to content

Commit

Permalink
value correction
Browse files Browse the repository at this point in the history
  • Loading branch information
Sven Kiefer committed Oct 27, 2023
1 parent 6b3b622 commit 11c9590
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions gcm_toolkit/tests/test_interface.py
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,7 @@ def test_prt_interface(petitradtrans_testdata, all_raw_testdata):
# test transit calculation
interface.chem_from_poorman("T", co_ratio=0.55, feh_ratio=0.0)
wave, spectra, _ = interface.calc_transit_spectrum(mmw=2.33)
assert sum(spectra) == 45398350665.651955
assert sum(spectra) == 45398356903.221634

# test transit calculation
interface.chem_from_poorman("T", co_ratio=0.55, feh_ratio=0.0)
Expand All @@ -140,7 +140,7 @@ def test_prt_interface(petitradtrans_testdata, all_raw_testdata):
wave, spectra, _ = interface.calc_transit_spectrum(
mmw=2.33, clouds=True, use_bruggemann=True
)
#assert sum(spectra) == 45398350666.008026
assert sum(spectra) == 45398350666.008026

# Test if Pa works
interface.dsi.attrs["p_unit"] = "Pa"
Expand Down

0 comments on commit 11c9590

Please sign in to comment.