Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add a Proposal table to an OpSim strategy via rubin-sim #329

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

chrisfrohmaier
Copy link
Contributor

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:

  • summaryallprops -> observations (new table name in sqlite database)
  • visitExposureTime, rotSkyPos are selected from observations as they are needed later in the script
  • lsst.sims.maf is no longer supported, all instances changed to rubin_sim.maf
  • camelCase modules in lsst has been changed to underscores in rubin-sim (some modules still are camelCase)

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)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant