Run black on notebooks
"source": [
"import numpy as np\n",
"import astropy.units as u\n",
- "from gammapy.spectrum import SpectrumDatasetOnOff, SpectrumEvaluator, SpectrumDataset\n",
+ "from gammapy.spectrum import (\n",
+ " SpectrumDatasetOnOff,\n",
+ " SpectrumEvaluator,\n",
+ " SpectrumDataset,\n",
+ ")\n",
"from gammapy.utils.fitting import Fit, Parameter\n",
"from gammapy.spectrum.models import PowerLaw\n",
"from gammapy.spectrum import models\n",
" index=2.5, amplitude=1e-11 * u.Unit(\"cm-2 s-1 TeV-1\"), reference=1 * u.TeV\n",
")\n",
"\n",
- "evaluator = SpectrumEvaluator(\n",
- " model=bkg_model,\n",
- " aeff=aeff,\n",
- " livetime=livetime,\n",
- ")\n",
+ "evaluator = SpectrumEvaluator(model=bkg_model, aeff=aeff, livetime=livetime)\n",
"\n",
"npred_bkg = evaluator.compute_npred()"
]
