justincely / lightcurve_pipeline

pipeline for high level science products of HST 13902
BSD 3-Clause "New" or "Revised" License
2 stars 0 forks source link

Creation of quicklook plot is taking too long #10

Open bourque opened 9 years ago

bourque commented 9 years ago

It appears that the make_quicklook function in ingest_hstlc is taking a long time. For example:

07/21/2015 23:58:05 INFO: Ingesting /grp/hst/hstlc/hst13902/ingest/o4xm02030_corrtag.fits
07/21/2015 23:58:06 INFO:   Updating metadata table.
07/21/2015 23:58:06 INFO:   Creating lightcurve /grp/hst/hstlc/hst13902/outputs/IO-EAST-1/o4xm02030_curve.fits
07/21/2015 23:58:07 INFO:   Updating outputs table.
07/21/2015 23:58:07 INFO:   Creating quicklook plot.
07/21/2015 23:58:20 INFO:   Moving file /grp/hst/hstlc/hst13902/filesystem/IO-EAST-1/o4xm02030_corrtag.fits
07/21/2015 23:58:20 INFO:   Moving x1d file.

It's taking a few seconds to create the lightcurve, but close to 15 seconds to make the quicklook plot. Perhaps there are some matplotlib backend things going on that are slowing the process down.