RickKessler / SNANA

Supernova Analysis package
38 stars 23 forks source link

SNMAGSHIFT and CCSNe #304

Closed bap37 closed 3 years ago

bap37 commented 3 years ago

Looks like there's some weird interplay between SNMAGSHIFT, WGTMAPs, and CCSNe. I'm launching this file,

/project2/rkessler/SURVEYS/SDSS/USERS/BAP37/BBC_paper_2/PS1_usable/BP-PS1+MVCC.yml

Which specifies that the Core Collapse simulations have HOSTLIB_MSKOPT: 2.

But in the log files, here,

/scratch/midway2/rkessler/PIPPIN_OUTPUT/BP-PS1+MVCC/1_SIM/PS1+CC/LOGS

We get the following error:

INIT_HOSTLIB(): Read host-galaxy library.
Load 'r_obs,LOGMASS_TRUE' for SNTABLE storage.
Read WEIGHT-MAP from supplemental file:
/project2/rkessler/SURVEYS/SDSS/USERS/BAP37/BBC_paper_2/PS1_usable/PS1.WGTMAP
Load GRIDMAP-020 'WGTMAP(LOGMASS_TRUE WGT SNMAGSHIFT )' NROW=47
Ignore SNMAGSHIFT in WGTMAP
Reading /project2/rkessler/SURVEYS/SDSS/USERS/BAP37/BBC_paper_2/PHOT_HOSTLIBS/PS1-PHOT-G10.HOSTLIB

|```````|
<| o\ /o |>
| ' ; ' |
| | ABORT program on Fatal Error.
| |' '| |
| `---' |
____
/

FATAL ERROR ABORT called by read_head_HOSTLIB
Found zero SN params for HOSTLIB_MSKOPT&64 option.
Expected 1 or more of 'NULL NULL NULL NULL SNMAGSHIFT '

However, the input command includes this: "HOSTLIB_MSKOPT 2 HOSTLIB_WGTMAP_FILE /project2/rkessler/SURVEYS/SDSS/USERS/BAP37/BBC_paper_2/PS1_usable/PS1.WGTMAP SEARCHEFF_zHOST_FILE /project2/rkessler/SURVEYS/SDSS/USERS/BAP37/BBC_paper_2/PS1_usable/SEARCHEFF_ZHOST.DAT "

Which would indicate it isn't using HOSTLIB_MSKOPT: 64.

The FAIL_SUMMARY file is here: /scratch/midway2/rkessler/PIPPIN_OUTPUT/BP-PS1+MVCC/1_SIM/PS1+CC/LOGS/FAIL_SUMMARY.LOG

RickKessler commented 3 years ago

Fixed nasty bug related to how HOSTLIB_MSKOPT was interpreted on command-line override. Rather than replacing previous HOSTLIB_MSKOPT, it was appending bits. For example, if your input file had HOSTLIB_MSKOPT: 2, and your command line override was HOSTLIB_MSKOPT 64, then internally it used HOSTLIB_MSKOPT=66. With this fix, it now uses only the override value (64).