Skip to content

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

Open
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

parejkoj
Copy link
Contributor

@parejkoj parejkoj commented Apr 2, 2025

No description provided.

Copy link
Member

@kfindeisen kfindeisen left a 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.

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``).
Copy link
Member

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).

Comment on lines 49 to 52
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``).
Copy link
Member

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).

@@ -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``).
Copy link
Member

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.

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.

2 participants