Details
-
Type:
Story
-
Status: Done
-
Resolution: Done
-
Fix Version/s: None
-
Component/s: None
-
Labels:None
-
Story Points:8
-
Epic Link:
-
Sprint:AP F20-2 (July), AP F20-3 (August)
-
Team:Alert Production
-
Urgent?:No
Description
After discussing with Eric Morganson [X] and Chris Stephens at NCSA, I have an empty APDB-like PostgreSQL I can connect to hosted at lsst-pg-devel1. Eventually we will probably want to use one of these instead of sqlite for all/most AP reprocessing, especially the larger multi-filter HSC "medium" dataset I used for DM-24252. For now, this ticket is just to rerun ap_pipe with this new flavor of database to see if I can get it to work. The results should be nearly identical to the official July 2020 reprocessing (DM-25910).
Fun facts
- Credentials are an issue, as every time I connect to this DB I presently have to type my NCSA password
- I don't currently have the ability to run e.g. make_apdb.py and get a fresh empty PostgreSQL proto-APDB on this host, instead I have to ask Chris S to make me one, and there's just one for me to play with for starters
- I need to read up on psycopg2 (python package for interfacing with PostgreSQL databases so I can load APDB data into python/pandas)
- The host for this test database is, as Chris S described, the wild west, and we will need to do something to make sure this and future APDBs are accessible in the future
I successfully completed an ap_pipe run with the APDB being written to the new lsstdevapdb1 PostgreSQL database! I need to verify I can access the data to make my usual plots and analysis. I also need to learn a workflow for copying a past rerun's APDB into a new schema, make sure I know how to access that schema in the future, and then wipe the old default schema (conveniently called "mrawls") so it is ready for the next rerun to connect to. There is presently a permission issue and I still need to find a better way to store my credentials.