Skip to content

Commit

Permalink
Simplify cache key
Browse files Browse the repository at this point in the history
  • Loading branch information
maxnoe committed Jan 8, 2025
1 parent 8c4da76 commit 4a24199
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/ctapipe_io_lst/calibration.py
Original file line number Diff line number Diff line change
Expand Up @@ -1106,7 +1106,7 @@ def ped_time(timediff):



_fourier_cache_key_type = types.UniTuple(types.int16, 2)
_fourier_cache_key_type = types.int16
_fourier_cache_value_type = types.UniTuple(types.float64[:], 2)


Expand Down Expand Up @@ -1165,7 +1165,7 @@ def calc_fourier_time_correction(first_capacitor, fan, fbn, cache):
time = 0
first_capacitor = first_capacitor % N_CAPACITORS_CHANNEL

cache_key = (types.int16(n_harmonics), types.int16(first_capacitor))
cache_key = types.int16(first_capacitor)
cache_val = cache.get(cache_key)
if cache_val is not None:
sin_terms, cos_terms = cache_val

Check warning on line 1171 in src/ctapipe_io_lst/calibration.py

View check run for this annotation

Codecov / codecov/patch

src/ctapipe_io_lst/calibration.py#L1168-L1171

Added lines #L1168 - L1171 were not covered by tests
Expand Down

0 comments on commit 4a24199

Please sign in to comment.