Skip to content

Commit

Permalink
Merge pull request #55 from lenasaurenhaus/master
Browse files Browse the repository at this point in the history
  • Loading branch information
cescalara authored Mar 22, 2024
2 parents 7ada2a5 + f1344bd commit d8f8bc2
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions icecube_tools/neutrino_calculator.py
Original file line number Diff line number Diff line change
Expand Up @@ -168,17 +168,17 @@ def __call__(self, time=1, min_energy=1e2, max_energy=1e9, min_cosz=-1, max_cosz

# @TODO: Add contribution from bins on boundary.
self._selected_effective_area_values[
self.effective_area.true_energy_bins[1:] < min_energy
self.effective_area.true_energy_bins[1:] <= min_energy
] = 0
self._selected_effective_area_values[
self.effective_area.true_energy_bins[:-1] > max_energy
self.effective_area.true_energy_bins[:-1] >= max_energy
] = 0

self._selected_effective_area_values.T[
self.effective_area.cos_zenith_bins[1:] < min_cosz
self.effective_area.cos_zenith_bins[1:] <= min_cosz
] = 0
self._selected_effective_area_values.T[
self.effective_area.cos_zenith_bins[:-1] > max_cosz
self.effective_area.cos_zenith_bins[:-1] >= max_cosz
] = 0

N = []
Expand All @@ -190,10 +190,10 @@ def __call__(self, time=1, min_energy=1e2, max_energy=1e9, min_cosz=-1, max_cosz

self._selected_aeff = self._selected_effective_area_values.copy()
self._selected_aeff[
self.effective_area.true_energy_bins[1:] < src_min_energy
self.effective_area.true_energy_bins[1:] <= src_min_energy
] = 0
self._selected_aeff[
self.effective_area.true_energy_bins[:-1] > src_max_energy
self.effective_area.true_energy_bins[:-1] >= src_max_energy
] = 0

if source.source_type == DIFFUSE:
Expand Down

0 comments on commit d8f8bc2

Please sign in to comment.