Add a Proposal table to an OpSim strategy via rubin-sim #329
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
The script in this Pull request will add a Proposal table to an OpSim strategy. Tested on strategies from baseline v2.2 to v3.2.
This will enable the user to run the OpSimSummary code to generate an SNANA simib.
Based on script by rhiannonlynne
Updated for rubin-sim by: Chris Frohmaier (c.frohmaier@soton.ac.uk)
!!! You must have the rubin-sim package in your python environment to run this script !!!
This script has been adapted from a legacy code from LSST: add_fbs_proposals.py
The original script can be found here: https://github.com/lsst-sims/legacy_sims_maf/blob/main/bin.src/add_fbs_proposals.py
All changes are performed in-place.
Updates include:
Usage:
(rubin-sim)$ python add_ProposalTable_rubin_sim.py ./baseline_v3.0_10yrs.db
(Change
./baseline_v3.0_10yrs.db
to the path of your OpSim of choice)