LSST Applications g0265f82a02+c6dfa2ddaf,g1162b98a3f+ffe7eabc7e,g2079a07aa2+1b2e822518,g2bbee38e9b+c6dfa2ddaf,g337abbeb29+c6dfa2ddaf,g36da64cc00+ea84795170,g3ddfee87b4+955a963fd8,g50ff169b8f+2eb0e556e8,g52b1c1532d+90ebb246c7,g555ede804d+955a963fd8,g591dd9f2cf+bac198a2cb,g5ec818987f+420292cfeb,g858d7b2824+d6c9a0a3b8,g876c692160+aabc49a3c3,g8a8a8dda67+90ebb246c7,g8cdfe0ae6a+4fd9e222a8,g99cad8db69+e6cd765486,g9ddcbc5298+a1346535a5,ga1e77700b3+df8f93165b,ga8c6da7877+acd47f83f4,gae46bcf261+c6dfa2ddaf,gb0e22166c9+8634eb87fb,gb3f2274832+12c8382528,gba4ed39666+1ac82b564f,gbb8dafda3b+0574160a1f,gbeb006f7da+dea2fbb49f,gc28159a63d+c6dfa2ddaf,gc86a011abf+d6c9a0a3b8,gcf0d15dbbd+955a963fd8,gdaeeff99f8+1cafcb7cd4,gdc0c513512+d6c9a0a3b8,ge79ae78c31+c6dfa2ddaf,geb67518f79+ba1859f325,gee10cc3b42+90ebb246c7,gf1cff7945b+d6c9a0a3b8,w.2024.13
LSST Data Management Base Package
|
Public Member Functions | |
ApdbConfig | make_config (self, **Any kwargs) |
ApdbTables | getDiaObjects_table (self) |
None | assert_catalog (self, Any catalog, int rows, ApdbTables table) |
None | assert_table_data (self, Any catalog, int rows, ApdbTables table) |
None | test_makeSchema (self) |
None | test_empty_gets (self) |
None | test_empty_gets_0months (self) |
None | test_storeObjects (self) |
None | test_storeObjects_empty (self) |
None | test_storeSources (self) |
None | test_storeForcedSources (self) |
None | test_getHistory (self) |
None | test_storeSSObjects (self) |
None | test_reassignObjects (self) |
None | test_midpointMjdTai_src (self) |
None | test_midpointMjdTai_fsrc (self) |
None | test_metadata (self) |
None | test_nometadata (self) |
None | test_schemaVersionFromYaml (self) |
None | test_config_freeze (self) |
Public Attributes | |
use_insert_id | |
Static Public Attributes | |
bool | time_partition_tables = False |
visit_time = astropy.time.Time("2021-01-01T00:00:00", format="isot", scale="tai") | |
bool | fsrc_requires_id_list = False |
bool | use_insert_id = False |
bool | allow_visit_query = True |
dict | table_column_count |
Base class for Apdb tests that can be specialized for concrete implementation. This can only be used as a mixin class for a unittest.TestCase and it calls various assert methods.
None lsst.dax.apdb.tests._apdb.ApdbTest.assert_catalog | ( | self, | |
Any | catalog, | ||
int | rows, | ||
ApdbTables | table ) |
Validate catalog type and size Parameters ---------- catalog : `object` Expected type of this is ``pandas.DataFrame``. rows : `int` Expected number of rows in a catalog. table : `ApdbTables` APDB table type.
Definition at line 153 of file _apdb.py.
None lsst.dax.apdb.tests._apdb.ApdbTest.assert_table_data | ( | self, | |
Any | catalog, | ||
int | rows, | ||
ApdbTables | table ) |
Validate catalog type and size Parameters ---------- catalog : `object` Expected type of this is `ApdbTableData`. rows : `int` Expected number of rows in a catalog. table : `ApdbTables` APDB table type. extra_columns : `int` Count of additional columns expected in ``catalog``.
Definition at line 169 of file _apdb.py.
ApdbTables lsst.dax.apdb.tests._apdb.ApdbTest.getDiaObjects_table | ( | self | ) |
ApdbConfig lsst.dax.apdb.tests._apdb.ApdbTest.make_config | ( | self, | |
**Any | kwargs ) |
None lsst.dax.apdb.tests._apdb.ApdbTest.test_config_freeze | ( | self | ) |
Test that some config fields are correctly frozen in database.
Definition at line 700 of file _apdb.py.
None lsst.dax.apdb.tests._apdb.ApdbTest.test_empty_gets | ( | self | ) |
Test for getting data from empty database. All get() methods should return empty results, only useful for checking that code is not broken.
Definition at line 201 of file _apdb.py.
None lsst.dax.apdb.tests._apdb.ApdbTest.test_empty_gets_0months | ( | self | ) |
Test for getting data from empty database. All get() methods should return empty DataFrame or None.
Definition at line 261 of file _apdb.py.
None lsst.dax.apdb.tests._apdb.ApdbTest.test_getHistory | ( | self | ) |
Store and retrieve catalog history.
Definition at line 419 of file _apdb.py.
None lsst.dax.apdb.tests._apdb.ApdbTest.test_makeSchema | ( | self | ) |
Test for making APDB schema.
Definition at line 189 of file _apdb.py.
None lsst.dax.apdb.tests._apdb.ApdbTest.test_metadata | ( | self | ) |
Simple test for writing/reading metadata table
Definition at line 626 of file _apdb.py.
None lsst.dax.apdb.tests._apdb.ApdbTest.test_midpointMjdTai_fsrc | ( | self | ) |
Test for time filtering of DiaForcedSources.
Definition at line 589 of file _apdb.py.
None lsst.dax.apdb.tests._apdb.ApdbTest.test_midpointMjdTai_src | ( | self | ) |
Test for time filtering of DiaSources.
Definition at line 551 of file _apdb.py.
None lsst.dax.apdb.tests._apdb.ApdbTest.test_nometadata | ( | self | ) |
Test case for when metadata table is missing
Definition at line 657 of file _apdb.py.
None lsst.dax.apdb.tests._apdb.ApdbTest.test_reassignObjects | ( | self | ) |
Reassign DiaObjects.
Definition at line 517 of file _apdb.py.
None lsst.dax.apdb.tests._apdb.ApdbTest.test_schemaVersionFromYaml | ( | self | ) |
Check version number handling for reading schema from YAML.
Definition at line 683 of file _apdb.py.
None lsst.dax.apdb.tests._apdb.ApdbTest.test_storeForcedSources | ( | self | ) |
Store and retrieve DiaForcedSources.
Definition at line 386 of file _apdb.py.
None lsst.dax.apdb.tests._apdb.ApdbTest.test_storeObjects | ( | self | ) |
Store and retrieve DiaObjects.
Definition at line 305 of file _apdb.py.
None lsst.dax.apdb.tests._apdb.ApdbTest.test_storeObjects_empty | ( | self | ) |
Test calling storeObject when there are no objects: see DM-43270.
Definition at line 327 of file _apdb.py.
None lsst.dax.apdb.tests._apdb.ApdbTest.test_storeSources | ( | self | ) |
Store and retrieve DiaSources.
Definition at line 341 of file _apdb.py.
None lsst.dax.apdb.tests._apdb.ApdbTest.test_storeSSObjects | ( | self | ) |
Store and retrieve SSObjects.
Definition at line 492 of file _apdb.py.
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |