Skip to content

Commit

Permalink
Fix call to prepare_data() in case of no performance data
Browse files Browse the repository at this point in the history
  • Loading branch information
HealthyPear committed Sep 19, 2024
1 parent 0666b16 commit bb1ea75
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/iact_estimator/scripts/estimator.py
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,9 @@ def main():
if not performance_data:
energy_bins, gamma_rate, background_rate = prepare_data(config)
else:
energy_bins, gamma_rate, background_rate = prepare_data(performance_data)
energy_bins, gamma_rate, background_rate = prepare_data(
config, performance_data
)

en, sed, dsed, sigmas, detected = calculate(
energy_bins, gamma_rate, background_rate, config, assumed_spectrum
Expand Down

0 comments on commit bb1ea75

Please sign in to comment.