from_orm¶
-
classmethod
Event.
from_orm
(db_event, inventory)[source]¶ Convert a database orm mapper event to a event.
- Parameters
db_event (
EventDb
) – An instance of the sqlalchemy Table Mapper class defined inmss_dataserver.event.databaseFactory()
.inventory (
mss_dataserver.geometry.inventory.Inventory
) – The inventory used to map geometry information to the event.
- Returns
The event created from the database ORM instance.
- Return type