Skip to content

Commit 2bd6c87

Browse files
committed
Fix key for reuse
1 parent 1a9e3b3 commit 2bd6c87

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

Diff for: fact/VERSION

+1-1
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
0.25.1
1+
0.25.2

Diff for: fact/io.py

+1-2
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@
1010
import astropy.units as u
1111
import tempfile
1212
import warnings
13-
from time import perf_counter
1413

1514

1615
__all__ = [
@@ -559,7 +558,7 @@ def read_simulated_spectrum(corsika_headers_path):
559558
if 'n_reuse' in runs.columns:
560559
# if reuse is not the same for all runs, multply n_showers
561560
# and set reuse to 1
562-
unique = runs['reuse'].unique()
561+
unique = runs['n_reuse'].unique()
563562
if len(unique) > 1:
564563
summary['n_showers'] = (n_showers * runs['n_reuse']).sum()
565564
summary['n_reuse'] = 1

0 commit comments

Comments
 (0)