ACTCollaboration / actsims

Simulations of the microwave sky as seen by ACT and Planck.
9 stars 4 forks source link

Noise sims restructuring #14

Closed msyriac closed 5 years ago

msyriac commented 5 years ago

This is work in progress and not ready to merge yet. But the general idea would be that the user would specify certain directory paths in input/paths.yml. Everything else about the data (e.g. file name convention) is encoded in a class called DataModel. This is hidden from the user. Other classes like NoiseModel will inherit this structure. So a typical use case after the user sets their directory paths would be something like:

simgen = actsims.NoiseModel("s15","pa3","deep5")
noise_sim = simgen.get_noise_sim(seed=1)

The branch "covtesting" has a working version of this, but I'm developing a better API into this branch (not currently working).