lsst.dax.apdb g4c90b7bd52+f74e45347e
|
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_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) |
Static Public Attributes | |
bool | time_partition_tables = False |
visit_time = DateTime("2021-01-01T00:00:00", DateTime.TAI) | |
bool | fsrc_requires_id_list = False |
bool | use_insert_id = False |
dict | table_column_count |
Callable | assertEqual [[Any, Any], None] |
Callable | assertIs [[Any, Any], None] |
Callable | assertIsInstance [[Any, Any], None] |
Callable | assertIsNone [[Any], None] |
Callable | assertIsNotNone [[Any], None] |
Callable | assertRaises [[Any], ContextManager] |
Callable | assertRaisesRegex [[Any, Any], ContextManager] |
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.
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``.
ApdbTables lsst.dax.apdb.tests._apdb.ApdbTest.getDiaObjects_table | ( | self | ) |
Return type of table returned from getDiaObjects method.
ApdbConfig lsst.dax.apdb.tests._apdb.ApdbTest.make_config | ( | self, | |
**Any | kwargs | ||
) |
Make config class instance used in all tests.
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.
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.
None lsst.dax.apdb.tests._apdb.ApdbTest.test_getHistory | ( | self | ) |
Store and retrieve catalog history.
None lsst.dax.apdb.tests._apdb.ApdbTest.test_makeSchema | ( | self | ) |
Test for makeing APDB schema.
None lsst.dax.apdb.tests._apdb.ApdbTest.test_midpointMjdTai_fsrc | ( | self | ) |
Test for time filtering of DiaForcedSources.
None lsst.dax.apdb.tests._apdb.ApdbTest.test_midpointMjdTai_src | ( | self | ) |
Test for time filtering of DiaSources.
None lsst.dax.apdb.tests._apdb.ApdbTest.test_reassignObjects | ( | self | ) |
Reassign DiaObjects.
None lsst.dax.apdb.tests._apdb.ApdbTest.test_storeForcedSources | ( | self | ) |
Store and retrieve DiaForcedSources.
None lsst.dax.apdb.tests._apdb.ApdbTest.test_storeObjects | ( | self | ) |
Store and retrieve DiaObjects.
None lsst.dax.apdb.tests._apdb.ApdbTest.test_storeSources | ( | self | ) |
Store and retrieve DiaSources.
None lsst.dax.apdb.tests._apdb.ApdbTest.test_storeSSObjects | ( | self | ) |
Store and retrieve SSObjects.
|
static |