Cleanup `MapDataset.to_spectrum()`
See original GitHub issueWe currently have MapDataset.to_spectrum()
and MapDataset.to_spectrum_dataset
. The difference between the two is not very clear from the doc-string.
If I understand correctly, the latter does a containmemt correction for extended sources.
For clarity, we can maybe merge the two, or make to_spectrum
hidden?
Issue Analytics
- State:
- Created 2 years ago
- Comments:7 (7 by maintainers)
Top Results From Across the Web
gammapy.datasets - GitHub
A Python package for gamma-ray astronomy. Contribute to gammapy/gammapy development by creating an account on GitHub.
Read more >"Cleanup called..." while loading MNIST Datasets
I'm using TensorFlow to load the MNIST dataset, and it keeps printing "Cleanup called..." on the output cell continuously.
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
The reason why it was named
MapDataset.to_spectrum()
is the consistency withMapDataset.to_image()
, which also returns aMapDataset
. So one could choose e.g..to_region_map_dataset()
and.to_image_map_dataset()
.Solved by #3471.