From b127e3011ca46553f75da76bd3a1d0d117866621 Mon Sep 17 00:00:00 2001 From: Lukas Beiske Date: Thu, 21 Nov 2024 12:33:12 +0100 Subject: [PATCH] Fix irf tool for only proton file; remove refs to visualization code in docs --- docs/api-reference/irf/index.rst | 5 ----- src/ctapipe/tools/make_irf.py | 2 +- 2 files changed, 1 insertion(+), 6 deletions(-) diff --git a/docs/api-reference/irf/index.rst b/docs/api-reference/irf/index.rst index 471e53077af..c50d705fc5a 100644 --- a/docs/api-reference/irf/index.rst +++ b/docs/api-reference/irf/index.rst @@ -22,9 +22,6 @@ are done using the `pyirf `_ package. :ref:`binning`, :ref:`preprocessing`, and :ref:`spectra` contain helper functions and classes used by many of the other components in this module. -:ref:`irf_visualization` and :ref:`vis_utils` implement some functionalities for visualizing -the irf components. - Submodules ========== @@ -38,8 +35,6 @@ Submodules binning preprocessing spectra - visualization - vis_utils Reference/API diff --git a/src/ctapipe/tools/make_irf.py b/src/ctapipe/tools/make_irf.py index 7500977aba2..ec039cfa0a6 100644 --- a/src/ctapipe/tools/make_irf.py +++ b/src/ctapipe/tools/make_irf.py @@ -354,7 +354,7 @@ def calculate_selections(self, reduced_events: dict) -> dict: self.opt_result.gh_cuts, operator.ge, ) - n_sel["bg_type"] = np.count_nonzero( + n_sel[bg_type] = np.count_nonzero( reduced_events[bg_type]["selected_gh"] )