Closed tylerbarna closed 1 year ago
I also noticed that previous versions would output lightcurves in a format like
{
[filter1]:[[t0,m0,m0_unc],
[t1,m1,m1_unc],...],
[filter2]:...
}
rather than the current format of
# t[days] [filter1] [filter2] ...
t0 m0_filt1 m0_filt2 ...
...
I think the disconnect when loading in a lightcurve file is in load_event() as it's called in analysis.py
This is a mix of a bug report and a feature request
Feature Summary currently, using an injection from nmma_create_injection to create a lightcurve with light_curve_generation creates a lightcurve with the following header:
If you attempt to run light_curve_analysis on the file, it errors out because the lightcurve file is not in the format nmma expects
To Reproduce (note: these were run in a directory in the same root as the nmma repo, but not actually in the nmma repo folder)
Returns the following error
Usage / behavior It should be possible to create an injection, generate a lightcurve from the injection, and analyse the generated lightcurve with minimal effort within nmma
This would entail making light_curve_analysis handle file structures different from the expected isot format as it currently exists
Alternative Solutions we can also modify light_curve_generation to match the format expected by light_curve_analysis, but I think this is less preferable as a long-term solution
We can also implement a function that converts from the original format to our standard format; people could submit PRs to add new formats to the converter function
Implementation details Alter light_curve_analysis and/or light_curve_generation
Additional context We also should better document the output formats of the various files generated by nmma