Closed rbiswas4 closed 6 years ago
Don't forget about the SED files written for the lensed SNe! See Bryce's comment at https://github.com/LSSTDESC/sims_GCRCatSimInterface/pull/19#issuecomment-362346017 and the subsequent comment by me.
@rbiswas4 With regard to your earlier post, here is the LSST stack setup I am currently using for DC2-phoSim.
/global/common/software/lsst/cori-haswell-gcc/stack/setup_w_2017_46_py3_gcc6.sh
I've looked at @rbiswas4 's latest test and it looks good! A new "Dynamic" subdirectory was created in the instanceCatalog out_dir. The catalog objects point to, e.g., Dynamic/specFileSN_3322_59580.1396_r.dat PhoSim can be coerced to look there...:)
Closed via #22
Currently, the sprinkler and the sn codes write out seds to files in a directory called
spectra_files/Dynamic
relative to the working directory from which the script is launched. Each row in the phosim instance catalog corresponds to such a SN and lists the filename relative to thespectra_files/Dynamic
directory. An example of how the sed filename looks in the instance catalog row isspecFileSN_3322_59580.1396_r.dat
@TomGlanzman and I discussed this and agreed we would have the following changes that will help the production code and storage:
out_dir
specified by a production script. ie.spectra_files/Dynamic
is replaced byargs.out_dir/Dynamic
Dynamic/filename
. so in the example aboveDynamic/specFileSN_3322_59580.1396_r.dat
@TomGlanzman would like to see this in a test on Cori, probably repeating @jchiang87 's script. To set this up, we would need to have
OM10
andlenspop
that could be setup using the following script:mkdir -p /global/cscratch1/sd/rbiswas/DC2_test_files cp /global/cscratch1/sd/jchiang8/DC2_prs/agn_db_mbh_7.0_m_i_30.0.sqlite $SCRATCH/DC2_test_files/ cp /global/cscratch1/sd/jchiang8/DC2_prs/agn_db_mbh_7.0_m_i_30.0.sqlite $SCRATCH/DC2_test_files/
python setup.py develop
Now when you import om10 you'll get the development version, linked to to your fork.
Make sure you have all the requirements with
conda install scipy>=0.18.1
pip install -r requirements.txt```
checkout the branch corresponding to this issue in
sims_GCRCatSimInterface
and in thebin.src
run