Closed tylerbarna closed 1 year ago
@tylerbarna I experimented with this issue and found that if I install an older version of scikit-learn
(<1.2), I can get quickstart light_curve_generation
to work. I think this has to do with the version of that package used to generate the .joblib
files that are loaded from nmma/em/data
when setting --ztf-uncertainties
and --ztf-sampling
. I don't think this will break other parts of the code, but I'll open a PR and run the tests to make sure.
Describe the bug I set up a new environment and attempted to use the quickstart injection to generate lightcurves with
light_curve_generation
with ztf uncertaintiesTo Reproduce Steps to reproduce the behavior:
light_curve_generation --injection ./injection.json --label lc_gen --model Me2017 --svd-path ./svdmodels --tmin 0.01 --tmax 14.5 --dt 0.5 --ztf-uncertainties --filters g,r --outdir ./lightcurves
light_curve_generation --injection ./injection.json --label lc_gen --model Me2017 --svd-path ./svdmodels --tmin 0.01 --tmax 14.5 --dt 0.5 --ztf-uncertainties --filters g,r --outdir ./lightcurves -- ztf-sampling
Expected behavior Lightcurve files are generated with columns for time, filter, measurement, and uncertainty. Barring that structure, just that the command outputs lightcurves with uncertainties associated with each measurement
Screenshots In regards to the desired structure of the lightcurve file, this is what I am hoping to generate:
Whereas this is the general structure of the lightcurves if I exclude the --ztf-uncertainties flag that causes the error:
Platform information:
Additional context I have been trying to recreate prior behaviour I've had with nmma for generating lightcurves with associated uncertainties for each measurement while still imposing specific sampling times. I also noticed that, previously, the lightcurve files would have the filter as a column with each row corresponding to a measurement with an associated filter, but the new style has each filter and their measurements as separate columns. Is there a way to specify the previous structure?
Additional question, do the analysis tools take into account the uncertainty of observations