-
Notifications
You must be signed in to change notification settings - Fork 3
DM-39500: Populate Instrument metadata when an APDB instance is created #227
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
base: main
Are you sure you want to change the base?
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please follow commit organization best practices, otherwise looks about as good as this solution can.
doc/lsst.ap.pipe/apdb.rst
Outdated
pipetask run -p ApPipe.yaml -c parameters:apdb_config=apdb_config.py differencer:coaddName=dcr -b repo -o myrun | ||
|
||
The ``apdb_config.py`` argument to |apdb-cli| specifies the name of the created configuration file that will contain a serialized `~lsst.dax.apdb.ApdbConfig` for the new database. | ||
|
||
A Postgres database can be set up and used with the following: | ||
A Postgres database can be set up and used with the following. | ||
Note that ``MY_INSTRUMENT`` should be the fully-qualified name of the instrument whose data will populate this APDB instance (e.g. ``lsst.obs.lsst.LsstCam`` or ``lsst.obs.subaru.HyperSuprimeCam``). |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If this information is outright wrong, I recommend dropping or squashing this commit instead of patching it over later (imagine what would happen if the "part 2" commit got reverted, or this one got cherry-picked).
doc/lsst.ap.pipe/apdb.rst
Outdated
The ``apdb_config.py`` argument to |apdb-cli| specifies the name of the created configuration file that will contain a serialized `~lsst.dax.apdb.ApdbConfig` for the new database. Note that ``MY_INSTRUMENT`` should be the short name of the instrument whose data will populate this APDB instance (e.g. ``DECam`` or ``HSC``). | ||
|
||
A Postgres database can be set up and used with the following. | ||
Note that ``MY_INSTRUMENT`` should be the fully-qualified name of the instrument whose data will populate this APDB instance (e.g. ``lsst.obs.lsst.LsstCam`` or ``lsst.obs.subaru.HyperSuprimeCam``). |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I suggest moving this change into the first commit, or even merging the two commits together (if you have to say "part 2", then clearly it's not atomic).
doc/lsst.ap.pipe/apdb.rst
Outdated
@@ -46,10 +46,9 @@ To create an SQLite database from scratch, run the following (see the :ref:`dax_ | |||
apdb-cli metadata set apdb_config.py instrument MY_INSTRUMENT | |||
pipetask run -p ApPipe.yaml -c parameters:apdb_config=apdb_config.py differencer:coaddName=dcr -b repo -o myrun | |||
|
|||
The ``apdb_config.py`` argument to |apdb-cli| specifies the name of the created configuration file that will contain a serialized `~lsst.dax.apdb.ApdbConfig` for the new database. | |||
The ``apdb_config.py`` argument to |apdb-cli| specifies the name of the created configuration file that will contain a serialized `~lsst.dax.apdb.ApdbConfig` for the new database. Note that ``MY_INSTRUMENT`` should be the short name of the instrument whose data will populate this APDB instance (e.g. ``DECam`` or ``HSC``). |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please write one sentence per line, it makes future diffs much clearer.
This was leftover from some old refactoring.
f7ebcda
to
39b7fb5
Compare
No description provided.