CosmoStat / shapepipe

Shape Measurement Pipeline
MIT License
17 stars 13 forks source link

Existing output directory #660

Open martinkilbinger opened 1 year ago

martinkilbinger commented 1 year ago

Summary

Main updates

The proposed changes in this PR allow the code to run when the output directory already exists. For this, the config entry RUN_DATETIME needs to be set to False.

Module runners can then check whether the output file to create already exists and skip computation. As first cases this is done for mccd and ngmix.

In addition, regular expressions are allowed for the tile number IDs. This allows for a run of targeted input/output files instead of using all inputs.

This can be useful when a run is interrupted, in which case a re-run of the same module(s) will only be carried out for the still missing output files. Some issues should be solved before merging, e.g. the log files will be overwritten.

Other changes:

Reviewer Checklist

Reviewers should tick the following boxes before approving and merging the PR.