Fix in tutorials/astro_dark_matter.ipynb
"metadata": {},
"outputs": [],
"source": [
- "# NOTE: https://arxiv.org/abs/1607.08142 cite 2.67e21 without the the +/- 0.3 deg band around the plane\n",
- "mask = pix_reg.to_mask()\n",
- "data = mask.multiply(jfact.data)\n",
- "total_jfact = np.sum(data)\n",
+ "# NOTE: https://arxiv.org/abs/1607.08142 quote 2.67e21 without the +/- 0.3 deg band around the plane\n",
+ "total_jfact = pix_reg.to_mask().multiply(jfact).sum()\n",
"print(\n",
" \"J-factor in 1 deg circle around GC assuming a \"\n",
" \"{} is {:.3g}\".format(profile.__class__.__name__, total_jfact)\n",
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
- "version": "3.6.0"
+ "version": "3.7.0"
}
},
"nbformat": 4,
