Skip to content

Commit

Permalink
create derive_events_rate
Browse files Browse the repository at this point in the history
  • Loading branch information
VictorBarbosaMartins committed Feb 5, 2024
1 parent aca10de commit fcfef12
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ctao_cosmic_ray_spectra/spectral.py
Original file line number Diff line number Diff line change
Expand Up @@ -289,7 +289,7 @@ def derive_events_rate(self,
"""
spectrum_cone = self.integrate_cone(inner, outer)
spectrum_area = spectrum_cone.integrate_area(area)
return (spectrum_area.integrate_energy(energy_min, energy_max).decompose()
return (spectrum_area.integrate_energy(energy_min, energy_max).decompose())

@u.quantity_input(inner=u.deg, outer=u.deg, obstime=u.s, area=u.cm**2, energy=u.TeV)
def derive_number_events(self,
Expand Down

0 comments on commit fcfef12

Please sign in to comment.