from_orm

classmethod Catalog.from_orm(db_catalog, load_detections=False)[source]

Convert a database orm mapper catalog to a catalog.

Parameters
  • db_catalog (mss_dataserver.event.databaseFactory.DetectionCatalogDb) – The table mapperclass of the detection catalog database table.

  • load_detections (bool) – If true all detections contained in the catalog are loaded from the database.

Returns

The detection class created using the database ORM instance.

Return type

Detection