from_inventory_instance

classmethod DbChannel.from_inventory_instance(parent_station, instance)[source]

Create a DbChannel instance from a mss_data_server.geometry.inventory.Channel instance.

Parameters
  • parent_station (mss_data_server.geometry.db_inventory.DbStation) – The parent station to which the instance is related.

  • instance (mss_data_server.geometry.inventory.Channel) – The instance used to create the DbChannel instance.

Returns

The created channel.

Return type

DbChannel