Skip to content

Commit d67b939

Browse files
committed
combine assert out1 lines
1 parent 895454d commit d67b939

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

tests/spectrum/test_irradiance.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -148,7 +148,6 @@ def test_average_photon_energy_nan_irr():
148148
out2 = spectrum.average_photon_energy(spectra_series_singlenan)
149149
out3 = spectrum.average_photon_energy(spectra_series_allnan)
150150

151-
assert np.all(np.isnan(out1['global']))
152-
assert np.all(np.isnan(out1['extraterrestrial']))
151+
assert np.all(np.isnan(out1[['global', 'extraterrestrial']]))
153152
assert np.all(np.isnan(out2))
154153
assert np.all(np.isnan(out3))

0 commit comments

Comments
 (0)