Rename backscale to acceptance in tests
@@ -140,8 +140,8 @@ class TestSpectrumDatasetOnOff:
aeff=self.aeff,
edisp=self.edisp,
livetime=self.livetime,
- backscale=np.ones(elo.shape),
- backscale_off=np.ones(elo.shape) * 10,
+ acceptance=np.ones(elo.shape),
+ acceptance_off=np.ones(elo.shape) * 10,
obs_id="test",
)
@@ -183,8 +183,8 @@ class TestSpectrumDatasetOnOff:
aeff=self.aeff,
livetime=self.livetime,
edisp=self.edisp,
- backscale=1,
- backscale_off=10,
+ acceptance=1,
+ acceptance_off=10,
)
with mpl_plot_check():
dataset.peek()
@@ -199,8 +199,8 @@ class TestSpectrumDatasetOnOff:
aeff=self.aeff,
livetime=self.livetime,
edisp=self.edisp,
- backscale=1,
- backscale_off=10,
+ acceptance=1,
+ acceptance_off=10,
)
with mpl_plot_check():
dataset.plot_fit()
@@ -213,8 +213,8 @@ class TestSpectrumDatasetOnOff:
edisp=self.edisp,
livetime=self.livetime,
mask_safe=np.ones(self.on_counts.energy.nbin, dtype=bool),
- backscale=1,
- backscale_off=10,
+ acceptance=1,
+ acceptance_off=10,
obs_id="test",
)
dataset.to_ogip_files(outdir=tmpdir, overwrite=True)
@@ -231,7 +231,7 @@ class TestSpectrumDatasetOnOff:
aeff=self.aeff,
livetime=self.livetime,
mask_safe=np.ones(self.on_counts.energy.nbin, dtype=bool),
- backscale=1,
+ acceptance=1,
obs_id="test",
)
dataset.to_ogip_files(outdir=tmpdir, overwrite=True)
@@ -296,8 +296,8 @@ class TestSimpleFit:
obs = SpectrumDatasetOnOff(
counts=on_vector,
counts_off=self.off,
- backscale=1,
- backscale_off=1 / self.alpha,
+ acceptance=1,
+ acceptance_off=1 / self.alpha,
)
obs.model = self.source_model
@@ -439,8 +439,8 @@ def make_observation_list():
edisp=edisp,
livetime=livetime,
mask_safe=np.ones(on_vector.energy.nbin, dtype=bool),
- backscale=1,
- backscale_off=2,
+ acceptance=1,
+ acceptance_off=2,
obs_id=2,
)
obs2 = SpectrumDatasetOnOff(
@@ -450,8 +450,8 @@ def make_observation_list():
edisp=edisp,
livetime=livetime,
mask_safe=np.ones(on_vector.energy.nbin, dtype=bool),
- backscale=1,
- backscale_off=4,
+ acceptance=1,
+ acceptance_off=4,
obs_id=2,
)
