parsotat / BatAnalysis

A python HEASOFT wrapper for processing Swift-BAT data.
MIT License
28 stars 11 forks source link

Option to skip computation of the total mosaic in batmosaic_analysis #22

Closed Parrazyte closed 2 months ago

Parrazyte commented 3 months ago

Currently, batmosaic_analysis always computes all the time-bins mosaics AND the total mosaic resulting from the combination of all of them.

Depending on the objective, this may not always be useful, and takes a lot of computing time/space.

Would adding a simple new argument (to ask whether computing the final mosaic is necessary) clash with other parts of the code ?

parsotat commented 3 months ago

Hi @Parrazyte, thanks for the suggestion. Adding this is a good idea and should not break the code in other parts. The functions that are located in the parallel.py file are very general and you can easily copy that function, remove the part where the total mosaic is calculated, and use that new function as your own customized batmosaic_analysis function.

This is a temporary fix since I am expecting the survey code to have a major refactoring once the TTE analysis is ready for publication.

Parrazyte commented 3 months ago

Indeed, I changed that on my fork. I'll be waiting for the next version then :)

parsotat commented 2 months ago

This was addressed via PR #26