Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion icecube_data_reader/events.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
from pathlib import Path
import numpy as np
import numpy.typing as npt
from typing import Iterable
from astropy.coordinates import SkyCoord
from astropy import units as u
from astropy.time import Time
Expand Down Expand Up @@ -124,7 +125,7 @@ def __init__(
self,
energies: u.GeV,
coords: SkyCoord,
types: np.ndarray,
types: Iterable[EventType],
ang_errs: u.deg,
mjd: Time,
):
Expand Down Expand Up @@ -194,6 +195,7 @@ def remove(self, i: int) -> None:
self._types = np.delete(self._types, i)
self._ang_errs = np.delete(self._ang_errs, i)
self._mjd = np.delete(self._mjd, i)
self._int_types = np.delete(self._int_types, i)

def to_file(
self,
Expand Down