psferguson / chrysomallos

linking stars to observational selection functions through ssi
GNU General Public License v3.0
1 stars 0 forks source link

Improve configs for dwarf generation #6

Closed jeffcarlin closed 7 months ago

jeffcarlin commented 8 months ago

Problem currently: we have configs for dwarf param creation and dwarf generation and injection. Simplify to a single config to rule them all.

Solution: make a config for dwarf param creation, which outputs a CSV file that drives the generation/injection of dwarfs.

psferguson commented 8 months ago

I think I want update the config to be more like ugali configs. Specifically, I think we should have sections to the config (e.g. pipelines, injection, sampling).

Here is an example of what that would look like `class BaseConfig:

DEEP COADD

pipelines: dict = field(default_factory = lambda: {
# repository path
'repo': '/repo/main',
# collection string
'collection': 'HSC/runs/RC2/w_2023_32/DM-40356',
# bands for injection
'bands': ['g', 'r', 'i'],
# skymap
'skymap': 'hsc_rings_v1',
# tract to use
'tract': 9615,
# patch to use
'patch': 3,
})`

hmmm that didnt format right, here is a screen shot image