from_inventory_instance

classmethod DbSensorComponent.from_inventory_instance(parent_sensor, instance)[source]

Create a DbSensorComponent instance from a mss_data_server.geometry.inventory.SensorComponent instance.

Parameters
  • parent_sensor (mss_data_server.geometry.db_inventory.DbSensor) – The parent sensor to which the sensor component is related.

  • instance (mss_data_server.geometry.inventory.SensorComponent) – The instance used to create the DbSensorComponent instance.

Returns

The created sensor component.

Return type

DbSensorComponent