Skip to content

Commit

Permalink
repair test_atmosphere test
Browse files Browse the repository at this point in the history
  • Loading branch information
Jérémy Neveu committed Aug 26, 2024
1 parent a72f6e5 commit e21056e
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions tests/test_simulator.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,9 +30,9 @@ def test_atmosphere():
ozone_grid=[400, 400, 1], aerosol_grid=[0.0, 0.1, 2])
atmospheric_grid = a.compute()
assert np.sum(atmospheric_grid) > 0
assert np.all(np.isclose(a.atmgrid[0, a.index_atm_data:], parameters.LAMBDAS))
assert not np.any(np.isclose(a.atmgrid[1, a.index_atm_data:], np.zeros_like(parameters.LAMBDAS), rtol=1e-6))
assert a.atmgrid.shape == (3, a.index_atm_data + len(parameters.LAMBDAS))
assert np.all(np.isclose(a.atmgrid[0, a.index_atm_data:], a.lambdas))
assert not np.any(np.isclose(a.atmgrid[1, a.index_atm_data:], np.zeros_like(a.lambdas), rtol=1e-6))
assert a.atmgrid.shape == (3, a.index_atm_data + len(a.lambdas))
a.save_file(a.image_filename.replace('.fits', '_atmsim.fits'))
assert os.path.isfile('tests/data/reduc_20170605_028_atmsim.fits')
a.load_file(a.image_filename.replace('.fits', '_atmsim.fits'))
Expand Down

0 comments on commit e21056e

Please sign in to comment.