Skip to content

Commit fedd73c

Browse files
committed
Fix tests
1 parent ff60cef commit fedd73c

5 files changed

Lines changed: 6 additions & 5 deletions

File tree

sunkit_spex/legacy/tests/test_brem.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@
22
import pytest
33
from numpy.testing import assert_allclose, assert_array_equal
44

5-
from sunkit_spex import emission
6-
from sunkit_spex.integrate import fixed_quad, gauss_legendre
5+
from sunkit_spex.legacy import emission
6+
from sunkit_spex.legacy.integrate import fixed_quad, gauss_legendre
77

88

99
def test_broken_power_law_electron_distribution():

sunkit_spex/legacy/tests/test_integrate.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import numpy as np
22
from numpy.testing import assert_allclose
33

4-
from sunkit_spex.integrate import fixed_quad, gauss_legendre
4+
from sunkit_spex.legacy.integrate import fixed_quad, gauss_legendre
55

66

77
def test_scalar():

sunkit_spex/legacy/tests/test_photon_power_law.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33

44
import astropy.units as u
55

6-
from sunkit_spex import photon_power_law as ppl
6+
from sunkit_spex.legacy import photon_power_law as ppl
77

88

99
def test_different_bins():
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55

66
import astropy.units as u
77

8-
from sunkit_spex import thermal
8+
from sunkit_spex.legacy import thermal
99

1010
# Manually load file that was used to compile expected flux values.
1111
thermal.setup_continuum_parameters(

sunkit_spex/spectrum/uncertainty.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@ class PoissonUncertainty(_VariancePropagationMixin, NDUncertainty):
3131
`Poisson` should always be associated with an `NDData`-like
3232
instance, either by creating it during initialization::
3333
34+
>>> from astropy.nddata import NDData
3435
>>> from sunkit_spex.spectrum.uncertainty import PoissonUncertainty
3536
>>> ndd = NDData([1,2,3], unit='m',
3637
... uncertainty=PoissonUncertainty([0.1, 0.1, 0.1]))

0 commit comments

Comments
 (0)