from_inventory_instance¶
-
classmethod
DbInventory.from_inventory_instance(name, project, inventory)[source]¶ Create a
DbInventoryinstance from amss_data_server.geometry.inventory.Inventoryinstance.- 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 theDbInventoryinstance.
- Returns
The created instance.
- Return type