dessn / Pippin

Pipeline for photometric SN analysis
MIT License
9 stars 10 forks source link

CosmoMC ini templates #5

Closed maria-vincenzi closed 4 years ago

maria-vincenzi commented 4 years ago

Hello, I have an issue with adding new cosmomc .ini templates. I added at the top ok my script the lines:

GLOBAL:
  DATA_DIRS:
    - /path/to/my/own/ini

and in the section CREATE_COV and COSMOMC I have:

CREATE_COV:
  ALL:
    OPTS:
      COVOPTS:
    - "[NOSYS] [=DEFAULT,=DEFAULT]"

COSMOMC:
  SN_CMB_OMW:
    OPTS:
      INI: my_own_ini
      COVOPTS: [ALL, NOSYS]

However this is not working. I think the problem is that all the .ini files are created at the step CREATE_COV. They are built from the templates available in data_files/cosmomc_templates and they are stored in the output folder in 7_CREATE_COV. At this stage the code doesn't know that there's an extra cosmomc template in my own folder. At step 8, I specified that I want the .ini file my_own_ini. However pippin cannot find in 7_CREATE_COV the .ini file matching the string my_own_ini. Is there a way to get around this? Thanks!!

Samreay commented 4 years ago

Try moving your ini files into a directory called "cosmomc_templates" inside the location DATA_DIRS is pointing to. Ill add code to make this explicitly setable as well.

maria-vincenzi commented 4 years ago

Great!! thanks!

Samreay commented 4 years ago

Have added an explicit way in the last commit to specify the ini dir. See the readme here for an example: https://github.com/Samreay/Pippin#create-covariance

Changes are live on midway