Skip to content

Commit

Permalink
Fix irf tool for only proton file; remove refs to visualization code …
Browse files Browse the repository at this point in the history
…in docs
  • Loading branch information
LukasBeiske committed Nov 21, 2024
1 parent 91bce34 commit b127e30
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 6 deletions.
5 changes: 0 additions & 5 deletions docs/api-reference/irf/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,6 @@ are done using the `pyirf <https://pyirf.readthedocs.io/en/stable/>`_ 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
==========
Expand All @@ -38,8 +35,6 @@ Submodules
binning
preprocessing
spectra
visualization
vis_utils


Reference/API
Expand Down
2 changes: 1 addition & 1 deletion src/ctapipe/tools/make_irf.py
Original file line number Diff line number Diff line change
Expand Up @@ -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"]
)

Expand Down

0 comments on commit b127e30

Please sign in to comment.