mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-08-13 02:47:48 +00:00
len(get_inverse) -> get_total_inverses
This commit is contained in:
@@ -45,7 +45,7 @@ def remove_cost_value(
|
||||
|
||||
ifcopenshell.api.cost.remove_cost_value(model, parent=item, cost_value=value)
|
||||
"""
|
||||
if len(file.get_inverse(cost_value)) == 1:
|
||||
if file.get_total_inverses(cost_value) == 1:
|
||||
file.remove(cost_value)
|
||||
# TODO deep purge
|
||||
elif parent.is_a("IfcCostItem"):
|
||||
|
||||
Reference in New Issue
Block a user