Adding PASTRO_READY label along with the first upload
This MR is a small change that adds the PASTRO_READY label along with the upload instead of writing the label independently. This should avoid any problems where p_astro is uploaded and label is not written (in case of gracedb traffic). Also avoids using multiple loops.
Basically squashed these two independent steps -
- self.gracedb.writeLog( event_id, "source probabilities", filename=p_astro_fp )
- self.gracedb.writeLabel(event_id, "PASTRO_READY")
into one -
- self.gracedb.writeLog( event_id, "source probabilities", filename=p_astro_fp, label="PASTRO_READY" )