from_inventory_instance¶
-
classmethod
DbInventory.
from_inventory_instance
(name, project, inventory)[source]¶ Create a
DbInventory
instance from amss_data_server.geometry.inventory.Inventory
instance.- Parameters
name (str) – The name of the inventory.
project (
mss_data_server.core.project.Project
) – The project used to communicate with the database.inventory (
mss_dataserver.geometry.inventory.Inventory
) – The inventory to convert to theDbInventory
instance.
- Returns
The created instance.
- Return type