from_sqlalchemy_orm¶
-
classmethod
DbSensorComponent.
from_sqlalchemy_orm
(parent_sensor, orm)[source]¶ Create a
DbSensorComponent
instance from amss_data_server.geometry.databaseFactory.GeomSensorComponent
table mapper class.- Parameters
parent_sensor (
mss_data_server.geometry.db_inventory.DbSensor
) – The parent sensor to which the instance is related.orm (
mss_data_server.geometry.databaseFactory.GeomSensorComponent
) – The sqlalchemy table mapper class for the sensor component.
- Returns
The created instance.
- Return type