cleaner ipynb files
"source": [
"class BackgroundModelEstimator:\n",
" \"\"\"\"\"\"\n",
+ "\n",
" def __init__(self, energy, offset):\n",
" self.counts = self._make_bkg2d(energy, offset, unit=\"\")\n",
" self.exposure = self._make_bkg2d(energy, offset, unit=\"s MeV sr\")\n",
" @staticmethod\n",
" def _make_bkg2d(energy, offset, unit):\n",
" shape = len(energy.center), len(offset.center)\n",
- " return Background2D(\n",
- " axes=[energy, offset],\n",
- " unit=unit\n",
- " )\n",
+ " return Background2D(axes=[energy, offset], unit=unit)\n",
"\n",
" def run(self, observations):\n",
" for obs in observations:\n",
