Closed ColinOrionChandler closed 3 months ago
I'd like to take this, but wanted to clarify:
fits
files ? If so, I think we can provide feedback on the number of images loaded from the fits
file during the loading phase.Image i / total
done. We can use \r
character to overwrite the previous line so we avoid having total
number of rows printed. I can't think of a good way to estimate the time, but if my proposed solution is good enough we can start with that.WorkUnit
from an ImageCollection
, although it might be good to updates to all of the phases of reprojection including loading in a WorkUnit
from disk/FITs files (which takes a couple of minutes).multiprocessing
futures as well for the parallel version of reproject.Thank you for those clarifications - I'm looking at discrete_piles_e2e.ipynb
to see an example of creating a WorkUnit
from an ImageCollection
. I installed the lsst
package from here (pip install git+https://github.com/lsst/daf_butler.git
). However, I am missing the test data specified in REPO
path in the notebook. Is there some test data you can share ? Otherwise, I can try to use the MockButler
I think you shouldn't have to worry about installing the LSST stack to do development on this portion of KBMOD! If you just want to test against a basic WorkUnit
we have one we use for testing included in the test directory (this one, it's also the one we run against for the reprojection unit tests). If we wanted to run tests against actual data we could try doing some runs with the data we have our HPC clusters, but I think the unit test one would be a good place to start !
^ this is just in relation to reprojection, thinking about it you might need the stack to work with ImageCollection
generation, but I might need to defer to another dev about working with that
@maxwest-uw Made a PR with a start on this. Some points to confirm but let's address them there
Need to add the TQDM loop to a few of the ImageCollection and WorkUnit functions so that we can track the progress of various large tasks in the reproject/KBMOD search pipeline.
Important requirement: needs to interact nicely with output files on HPCs like klone.
tqdm should be added to the following places in the code:
Ideally, an indicator of the time remaining too, but at the very least letting the user see what is happening during the course of multi-hour operations like constructing work units.