Skip to content

Commit

Permalink
Fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
samaloney committed Jun 20, 2024
1 parent ff60cef commit fedd73c
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 5 deletions.
4 changes: 2 additions & 2 deletions sunkit_spex/legacy/tests/test_brem.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@
import pytest
from numpy.testing import assert_allclose, assert_array_equal

from sunkit_spex import emission
from sunkit_spex.integrate import fixed_quad, gauss_legendre
from sunkit_spex.legacy import emission
from sunkit_spex.legacy.integrate import fixed_quad, gauss_legendre


def test_broken_power_law_electron_distribution():
Expand Down
2 changes: 1 addition & 1 deletion sunkit_spex/legacy/tests/test_integrate.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import numpy as np
from numpy.testing import assert_allclose

from sunkit_spex.integrate import fixed_quad, gauss_legendre
from sunkit_spex.legacy.integrate import fixed_quad, gauss_legendre


def test_scalar():
Expand Down
2 changes: 1 addition & 1 deletion sunkit_spex/legacy/tests/test_photon_power_law.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

import astropy.units as u

from sunkit_spex import photon_power_law as ppl
from sunkit_spex.legacy import photon_power_law as ppl


def test_different_bins():
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

import astropy.units as u

from sunkit_spex import thermal
from sunkit_spex.legacy import thermal

# Manually load file that was used to compile expected flux values.
thermal.setup_continuum_parameters(
Expand Down
1 change: 1 addition & 0 deletions sunkit_spex/spectrum/uncertainty.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ class PoissonUncertainty(_VariancePropagationMixin, NDUncertainty):
`Poisson` should always be associated with an `NDData`-like
instance, either by creating it during initialization::
>>> from astropy.nddata import NDData
>>> from sunkit_spex.spectrum.uncertainty import PoissonUncertainty
>>> ndd = NDData([1,2,3], unit='m',
... uncertainty=PoissonUncertainty([0.1, 0.1, 0.1]))
Expand Down

0 comments on commit fedd73c

Please sign in to comment.