update name of function to make its purpose more clear

This commit is contained in:
krande
2023-12-16 14:01:36 +01:00
parent b11b3b7fa8
commit c9552fac29
2 changed files with 2 additions and 2 deletions
@@ -649,7 +649,7 @@ def get_base_type_name(
return None
def convert_file_units(ifc_file: ifcopenshell.file, target_units: str) -> ifcopenshell.file:
def convert_file_length_units(ifc_file: ifcopenshell.file, target_units: str) -> ifcopenshell.file:
"""Converts all units in an IFC file to the specified target units. Returns a new file."""
prefix = "MILLI" if target_units == "MILLIMETERS" else None
@@ -51,4 +51,4 @@ class Patcher:
self.file_patched: ifcopenshell.file = None
def patch(self):
self.file_patched = ifcopenshell.util.unit.convert_file_units(self.file, self.unit)
self.file_patched = ifcopenshell.util.unit.convert_file_length_units(self.file, self.unit)