from_inventory_instance

classmethod DbSensor.from_inventory_instance(parent_inventory, instance)[source]

Create a DbSensor instance from a mss_data_server.geometry.inventory.Sensor instance.

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

  • instance (mss_data_server.geometry.inventory.Sensor) – The instance used to create the DbSensor instance.

Returns

The created sensor.

Return type

DbSensor