Skip to content

Commit

Permalink
correct the time integration
Browse files Browse the repository at this point in the history
  • Loading branch information
VictorBarbosaMartins committed Feb 6, 2024
1 parent b9cb654 commit a9eb75c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions ctao_cosmic_ray_spectra/spectral.py
Original file line number Diff line number Diff line change
Expand Up @@ -327,8 +327,8 @@ def derive_number_events(self,
number of events integrated from the spectral distribution.
"""
spectrum_cone = self.derive_events_rate(inner, outer, area, energy_min, energy_max)
spectrum_time = spectrum_cone.integrate_time(obs_time)
return spectrum_time.decompose(bases=[u.m, u.TeV, u.s, u.sr])
spectrum_time = spectrum_cone * obs_time
return spectrum_time

class LogParabola:
r"""
Expand Down

0 comments on commit a9eb75c

Please sign in to comment.