-
Notifications
You must be signed in to change notification settings - Fork 19
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add multi-resolution TS map fitting #248
base: develop
Are you sure you want to change the base?
Conversation
…mpatiable with the MOC map fitting.
Codecov ReportAttention: Patch coverage is
|
Hello Yong, I looked at this tutorial, including the MOC-TS map. It works fine for me, I have only very minor suggestions from the point of view of the user. Apart from those, I think I can complete the review. i) MOC-TS map: maybe add a markdown reminding the user of the meaning of the parameters max_moc_order and top_number. I think also it would be useful to print on the screen the delta_likelihood between the top pixels (that will continue to be fitted and higher resolution) and the others. So that the user can have a feeling of how significant is the source the the procedure is finding. ii) Example 3, when the data are downloaded and binned. Maybe you can add another if statement checking for the existence of the .gz version of the file. The .gz file can also be unzipped on the fly using: import subprocess and subprocess.run(["gunzip", crab_unbinned_zipped_path]). The "shutils" command that you use before works only with .zip files, not with .gz. I would also a note to remind the user that the .ymal files have to be edited by hand (updating the paths) before proceeding. iii) There are a few typos, for instance, in example 2, 1st cell: excpt>>execEpt iv) Maybe you could consider splitting the tutorial into two notebooks e.g. one with the Crab and one with the GRB, or one with the Fast TS map and one with the MOC TS map. |
Hi @ldigesu, Thank you for the review. I updated the PR based on your comments.
I added comments to the cell to explain
I printed the top ts values.
Run:
Warning output:
|
This PR adds the method to do multi-resolution (also called multi-order coverage, MOC) TS map fitting.
Changes to
FastTSMap
FastTSMap
is the parent class ofMOCTSMap
I need to make several changes to
FastTSMap
to make it work withMOCTSMap
:pixel_idx
parameter forfast_ts_fit
.FastTSMap
.zip_comp
to generate the inputs formultiprocessing
.itertools.product
before. However, it will cause duplicated fittings inMOCTSMap
.zip_comp
to replace it.New module
MOCTSMap
.Changes to the TS map tutorial
Please let me know if you have any questions and suggestions. Thank you!