small changes in fit.py
@@ -156,7 +156,7 @@ class MapDataset(Dataset):
str_ += "\t{:32}: {}\n".format("Fit statistic type", self.likelihood_type)
stat = np.nan
- if self.count is not None and (
+ if self.counts is not None and (
self.model is not None or self.background_model is not None
):
stat = self.stat_sum()
