Adding new data to a butler gen3 [DECam]

Hi Joaquín, the error you’re getting is to be expected here. You’re trying to modify one of your CHAINED collections on-disk by adding new data into it. If you were able to do this, you may change the provenance for your existing data reductions which rely on this input CHAINED collection.

There are ways around this if you’re absolutely sure that you don’t need that provenance preserved. However, I think perhaps a safer approach in this instance might instead be for you to output your new crosstalk corrections to an entirely new collection, e.g.:

pipetask --long-log run --register-dataset-types -j 12 \
–skip-existing \
-b $REPO --instrument lsst.obs.decam.DarkEnergyCamera \
-i DECam/raw/all,DECam/calib/jhernandez/bias,DECam/calib/unbounded \
-o DECam/calib/jhernandez/crosstalk_202306 \
-p $DRP_PIPE_DIR/pipelines/DECam/DRP-Merian.yaml#step0 \
-d “instrument=‘DECam’ AND exposure IN $FLATEXPS” 

Then, when running data reductions downstream, you can add both your old crosstalk collection and your new one as part of a comma-separated list, e.g.:

-i DECam/raw/all,DECam/calib/jhernandez/crosstalk,DECam/calib/jhernandez/crosstalk_202306,...