superbit-collaboration / superbit-metacal

Contains a collection of routines used to perform gmix/metacalibration on simulated SuperBIT images
4 stars 1 forks source link

Rework file paths with configs #9

Closed sweverett closed 3 years ago

sweverett commented 3 years ago

Right now most file paths are hard coded for a single user. There are many alternatives we could choose, but I think it will be simplest to create configs for the user to specify relative to the repo path. The main decision here I believe is whether we want to have separate configs for each module (GalSim, Medsmaker, etc.) or a master config that talks to each subcomponent for full runs. It looks like there are existing config structures for the modules anyway, so maybe a master config + a script that produces the requisite configs from it for each module would be helpful.

sweverett commented 3 years ago

Alternatively, we could set a repo path variable and do everything relative to that. This would require making standard input / output directories for each module, but I don't think that would be much of an issue

mcclearyj commented 3 years ago

I like the idea of configs, since the GalSim code is set up to run with a config file.

sweverett commented 3 years ago

This idea is now incorporated into #22 as the high-level run config.