Skip to content

Commit

Permalink
Move Band_Eflux import inside get_integrated_spectral_model
Browse files Browse the repository at this point in the history
  • Loading branch information
eneights authored Dec 18, 2024
1 parent 1d22d95 commit c88a563
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions cosipy/response/functions.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,6 @@

from threeML import Band, DiracDelta, Constant, Line, Quadratic, Cubic, Quartic, StepFunction, StepFunctionUpper, Cosine_Prior, Uniform_prior, PhAbs, Gaussian

from cosipy.threeml import Band_Eflux

def get_integrated_spectral_model(spectrum, energy_axis):
"""
Get the photon fluxes integrated over given energy bins with an input astropy spectral model
Expand Down Expand Up @@ -37,6 +35,8 @@ def get_integrated_spectral_model(spectrum, energy_axis):
over each energy bin, and returns the result as a Histogram object.
"""

from cosipy.threeml import Band_Eflux

spectrum_unit = None

for item in spectrum.parameters:
Expand Down

0 comments on commit c88a563

Please sign in to comment.