lsst-sims / legacy_sims_catUtils

LSST Simulations package for catalog utilities
3 stars 4 forks source link

U/danielsf/observation meta data generator on night #70

Closed danielsf closed 7 years ago

danielsf commented 7 years ago

In order to be able to use the ObservationMetaDataGenerator in alertsim, we need to be able to

1) query the OpSim database based on the 'night' column 2) query the OpSim database based on an arbitrary, user-specified SQL 'where' clause

This PR adds those capabilities.

danielsf commented 7 years ago

It has been pointed out that allowing users to pass in arbitrary SQL constraints is not secure. I am going to replace this PR with a PR on u/danielsf/obsGen_secure, which adds queries on 'night', but not queries on arbitrary, user-specified SQL where clauses.