modify test and solve them on the check_intervals function in Phase_BackgroundMaker + modif doc
@@ -13,9 +13,6 @@ class PhaseBackgroundMaker(Maker):
TODO: For a usage example see future notebook.
- TODO: The phase interval has to be between 0 and 1.
- Cases like [-0.1, 0.1], for example, are still not supported.
-
Parameters
----------
on_phase : `tuple` or list of tuples
@@ -69,7 +66,7 @@ class PhaseBackgroundMaker(Maker):
return self._make_counts(dataset, observation, self.off_phase)
def make_counts(self, dataset, observation):
- """Make off counts.
+ """Make on counts.
Parameters
----------
@@ -80,8 +77,8 @@ class PhaseBackgroundMaker(Maker):
Returns
-------
- counts_off : `RegionNDMap`
- Off counts.
+ counts : `RegionNDMap`
+ On counts.
"""
return self._make_counts(dataset, observation, self.on_phase)
