Skip to content

Commit

Permalink
Update test_calculations.py
Browse files Browse the repository at this point in the history
  • Loading branch information
greensh16 committed Jul 10, 2024
1 parent 53067bf commit 2e66b79
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions tests/test_calculations.py
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ def create_var(nlat, nlon, ntime=None, nlev=None, sdepth=False, seed=100):
dims.insert(0, 'lev')
coords['lev'] = lev
shape.insert(0, nlev)
elif sdepth is True:
if sdepth is True:
depth = np.array([0.05, 0.2, 0.5, 1])
dims.insert(0, 'depth')
coords['depth'] = depth
Expand All @@ -66,7 +66,7 @@ def test_calc_topsoil():
out = calc_topsoil(mrsol)
xrtest.assert_allclose(out, expected, rtol=1e-05)


'''
def test_overturn_stream(caplog):
global ctx
caplog.set_level(logging.DEBUG, logger='varlog_1')
Expand Down Expand Up @@ -118,3 +118,4 @@ def test_overturn_stream(caplog):
with ctx:
out4 = overturn_stream(varlist)
nptest.assert_array_equal(res4, out4)
'''

0 comments on commit 2e66b79

Please sign in to comment.