Batch Processing¶
QuickLook supports processing many targets at scale using the CLI, shell scripts, or the web GUI.
CLI: --each-sector¶
Run the pipeline on every available sector for a single target:
Add -j N to parallelize across N workers:
Shell: batch script from a target list¶
Given a file tic_ids.txt with one TIC ID per line:
Generate a batch script¶
cat tic_ids.txt | while read tic; do
echo "ql --name TIC$tic -save --outdir results | tee TIC$tic.log"
done > run_batch.sh
Test a single line¶
Run all targets in parallel¶
Using GNU parallel:
Post-processing: rank candidates¶
After batch processing, use read_tls and rank_tls to find the best candidates.
Step 1: Extract TLS results¶
This scans all *_tls.h5 files in results/ and creates results_tls.csv with one row per target.
Step 2: Rank and filter¶
This filters candidates by SDE and other metrics, then copies the plots of the top candidates into ranked/.
Step 3: Visual inspection¶
Combine ranked plots into a single PDF for quick review:
Web GUI: batch submission¶
The web GUI supports batch submission:
- Enter multiple target names (one per line) in the batch input field
- Set shared pipeline parameters
- Click Submit Batch
Jobs are queued and executed one at a time. The queue panel shows progress for all jobs. When a job finishes, the GUI automatically starts watching the next one.
Web GUI: each-sector mode¶
- Enter a single target name
- Check Run each available sector
- Click Run QuickLook
The GUI queries available sectors, then submits one job per sector. All jobs share the same pipeline parameters.
Tips for large runs¶
- Save outputs (
-save): always save to disk so results persist across sessions. - Use an output directory (
--outdir results/): keep results organized. - Check for existing outputs: QuickLook skips targets that already have output files unless
-overwriteis used. - Monitor MAST availability: the MAST archive occasionally has outages. If many targets fail with HTTP errors, wait and retry.
- Disk space: each target produces a ~1 MB PNG and a ~1 MB HDF5 file.