-
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
Time Series Builder for COSI GRBs: #239
base: develop
Are you sure you want to change the base?
Conversation
saurabhmittal23
commented
Sep 3, 2024
- Takes in a COSI binned dataset containing signal plus background before and after the GRB - A response file (.hdf5 format or an OGIP compatible .rsp file) - If response is .hdf5, requires an ori file and source location to correctly rotate the response and saves a .rsp file and .arf file for future use - Creates a threeML compatible time series object which can be used in threeML to perform spectral fits
Codecov ReportAttention: Patch coverage is
|
Hi @saurabhmittal23. Thanks for working on this! I'm sorry it took me a while, but I finally read your code in detail. Although ultimately we want to use the full CDS for the GRB analysis, this code is useful because it will allow the user to do a simple ON/OFF analysis, which will be more familiar to many. It's also quicker, easier to visualize, and can be compared directly to other instruments. I think that what we ultimately want to do is to add a function to 3ML itself, as suggested by the 3ML documentation:
I don't think we want to add the function to 3ML yet, because our data format is still in flux. You can however re-write your code so that it is a simple copy-past once we get to that point. You already have the code, it just needs to be refactored. Instead of creating a child class of TimeSeriesBuilder, we only need a single function, which you already have:
This will be copy-pasted into 3ML's TimeSeriesBuilder (like all other missions), but for now it can be called with:
This is just using how Python knows about their own cls (for class methods) when called from the class itself, but otherwise, their class methods work like any other function. In order to make this work, you need to move the code that you currently have in Here are other comments besides this re-structuring:
Please don't hesitate to reach out if you need help with any of this. |