Skip to content

Commit

Permalink
push another test
Browse files Browse the repository at this point in the history
  • Loading branch information
chrisroadmap committed Sep 17, 2020
1 parent d737396 commit eb38be1
Showing 1 changed file with 34 additions and 0 deletions.
34 changes: 34 additions & 0 deletions tests/unit/unit_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -453,3 +453,37 @@ def test_ozone_treatments():
assert np.any(F2!=F3)
assert np.any(F2!=F4)
assert np.any(F3!=F4)


def test_ozone_treatments_conc_driven():
C1,F1,T1 = fair.forward.fair_scm(
emissions=rcp85.Emissions.emissions,
emissions_driven=False,
C=rcp85.Concentrations.gases,
tropO3_forcing='stevenson'
)
C2,F2,T2 = fair.forward.fair_scm(
emissions=rcp85.Emissions.emissions,
emissions_driven=False,
C=rcp85.Concentrations.gases,
tropO3_forcing='cmip6'
)
C3,F3,T3 = fair.forward.fair_scm(
emissions=rcp85.Emissions.emissions,
emissions_driven=False,
C=rcp85.Concentrations.gases,
tropO3_forcing='regress'
)
C4,F4,T4 = fair.forward.fair_scm(
emissions=rcp85.Emissions.emissions,
emissions_driven=False,
C=rcp85.Concentrations.gases,
tropO3_forcing='external',
F_tropO3 = 0
)
assert np.any(F1!=F2)
assert np.any(F1!=F3)
assert np.any(F1!=F4)
assert np.any(F2!=F3)
assert np.any(F2!=F4)
assert np.any(F3!=F4)

0 comments on commit eb38be1

Please sign in to comment.