cta analsyis
"dataset_image = stacked.to_image()\n",
"\n",
"images = {\n",
- " \"counts\": dataset_image.counts.get_image_by_idx((0,)),\n",
- " \"exposure\": dataset_image.exposure.get_image_by_idx((0,)),\n",
- " \"background\": dataset_image.background_model.map.get_image_by_idx((0,)),\n",
+ " \"counts\": dataset_image.counts,\n",
+ " \"exposure\": dataset_image.exposure,\n",
+ " \"background\": dataset_image.background_model.map,\n",
"}\n",
"\n",
"images[\"excess\"] = images[\"counts\"] - images[\"background\"]"
