len(get_inverse) -> get_total_inverses

This commit is contained in:
Andrej730
2025-02-24 11:34:47 +05:00
parent 6eda4e389c
commit 5eb9cb2ee4
17 changed files with 26 additions and 26 deletions
@@ -43,7 +43,7 @@ def remove_georeferencing(file: ifcopenshell.file) -> None:
ifcopenshell.api.pset.remove_pset(file, project, file.by_id(pset["id"]))
return
for projected_crs in file.by_type("IfcProjectedCRS"):
if (unit := projected_crs.MapUnit) and len(file.get_inverse(unit)) == 1:
if (unit := projected_crs.MapUnit) and file.get_total_inverses(unit) == 1:
projected_crs.MapUnit = None
ifcopenshell.util.element.remove_deep2(file, unit)
file.remove(projected_crs)