from_orm

classmethod Detection.from_orm(detection_orm, inventory)[source]

Convert a database orm mapper detection to a detection.

Parameters
  • detection_orm (mss_dataserver.event.databaseFactory.DetectionDb) – The ORM of the detection_orm database table.

  • inventory (Inventory) – The geometry inventory used to retrieve the stations of the detection.