Skip to content

Commit

Permalink
fix check for making neutrino lightcurve.
Browse files Browse the repository at this point in the history
  • Loading branch information
robertdstein committed May 8, 2020
1 parent 32a57d2 commit c6aec72
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions flarestack/core/unblinding.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
import sys
import os
import numpy as np
from flarestack.core.minimisation import MinimisationHandler, read_mh_dict
from flarestack.core.minimisation import MinimisationHandler, read_mh_dict, FlareMinimisationHandler
from flarestack.core.injector import MockUnblindedInjector, \
TrueUnblindedInjector
from flarestack.core.results import ResultsHandler
Expand Down Expand Up @@ -126,7 +126,7 @@ def __init__(self, unblind_dict, seed=None):

self.calculate_upper_limits()

if self.flare:
if isinstance(self, FlareMinimisationHandler):
self.neutrino_lightcurve()
else:
self.scan_likelihood()
Expand Down

0 comments on commit c6aec72

Please sign in to comment.