Skip to content

Commit

Permalink
Fix NLTE test
Browse files Browse the repository at this point in the history
  • Loading branch information
AWehrhahn committed Apr 19, 2022
1 parent 0a6badd commit 8c2ad5f
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions test/test_nlte.py
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@ def test_dll(lfs_atmo, lfs_nlte):
for lr, li in zip(linerefs, lineindices):
if lr[0] != -1 and lr[1] != -1:
counter += 1
libsme.InputDepartureCoefficients(bmat[:, lr].T, li)
libsme.InputDepartureCoefficients(bmat[:, lr], li)

flags = libsme.GetNLTEflags()
assert np.any(flags)
Expand All @@ -138,13 +138,13 @@ def test_dll(lfs_atmo, lfs_nlte):
libsme.InputDepartureCoefficients(None, 0)

with pytest.raises(TypeError):
libsme.InputDepartureCoefficients(bmat[:, [0, 1]].T, 0.1)
libsme.InputDepartureCoefficients(bmat[:, [0, 1]], 0.1)

with pytest.raises(ValueError):
libsme.InputDepartureCoefficients([0, 1], 10)

with pytest.raises(RuntimeError):
libsme.InputDepartureCoefficients(bmat[:, [0, 1]].T, -10)
libsme.InputDepartureCoefficients(bmat[:, [0, 1]], -10)


@pytest.fixture
Expand Down

0 comments on commit 8c2ad5f

Please sign in to comment.