Skip to content

Commit

Permalink
set temperature abstol to 0.01
Browse files Browse the repository at this point in the history
  • Loading branch information
scivision committed Nov 11, 2019
1 parent 9c0cad7 commit f40311e
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 6 deletions.
5 changes: 3 additions & 2 deletions matlab/datetimerange.m
@@ -1,10 +1,11 @@
function times = datetimerange(t0, t1, ts)
narginchk(3,3)
validateattributes(ts, {'numeric'}, {'scalar', 'positive'})
% ts: seconds

narginchk(3,3)
t0 = datenum(t0);
t1 = datenum(t1);

times = t0:ts/86400:t1;

end
end
8 changes: 4 additions & 4 deletions tests/test_module.py
Expand Up @@ -18,7 +18,7 @@ def test_past():
try:
atmos = msise00.run(t, altkm, glat, glon)
except ConnectionError:
pytest.xfail("unable to download RecentIndices.txt")
pytest.skip("unable to download RecentIndices.txt")

assert atmos["He"].ndim == 4
assert atmos["He"].size == 1
Expand Down Expand Up @@ -77,9 +77,9 @@ def test_forecast():

assert atmos.species == ["He", "O", "N2", "O2", "Ar", "Total", "H", "N", "AnomalousO"]

assert atmos["Tn"].item() == approx(671.513672)
assert atmos["Texo"].item() == approx(883.342529)
assert atmos["Tn"].item() == approx(671.513, abs=0.01)
assert atmos["Texo"].item() == approx(883.342, abs=0.01)


if __name__ == "__main__":
pytest.main(["-v", __file__])
pytest.main([__file__])

0 comments on commit f40311e

Please sign in to comment.