from_sqlalchemy_orm

classmethod DbSensor.from_sqlalchemy_orm(parent_inventory, orm)[source]

Create a DbSensor instance from a mss_data_server.geometry.databaseFactory.GeomSensor table mapper class.

Parameters
  • parent_inventory (mss_data_server.geometry.inventory.Inventory) – The parent inventory to which the instance is related.

  • orm (mss_data_server.geometry.databaseFactory.GeomSensor) – The sqlalchemy table mapper class for the sensor.

Returns

The created instance.

Return type

DbSensor