mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-09-28 03:05:33 +00:00
ifcfm cobie24 - remove unused ifc_file param from get_unit_name
This commit is contained in:
@@ -955,7 +955,7 @@ def get_unit_type_name(ifc_file: ifcopenshell.file, unit_type: str) -> Union[str
|
|||||||
return val(unit.Currency)
|
return val(unit.Currency)
|
||||||
|
|
||||||
|
|
||||||
def get_unit_name(ifc_file: ifcopenshell.entity_instance, unit: ifcopenshell.entity_instance) -> Union[str, None]:
|
def get_unit_name(unit: ifcopenshell.entity_instance) -> Union[str, None]:
|
||||||
if unit.is_a("IfcNamedUnit"):
|
if unit.is_a("IfcNamedUnit"):
|
||||||
return val(unit.Name)
|
return val(unit.Name)
|
||||||
|
|
||||||
|
|||||||
@@ -953,7 +953,7 @@ def get_unit_type_name(ifc_file: ifcopenshell.file, unit_type: str) -> Union[str
|
|||||||
return val(unit.Currency)
|
return val(unit.Currency)
|
||||||
|
|
||||||
|
|
||||||
def get_unit_name(ifc_file: ifcopenshell.entity_instance, unit: ifcopenshell.entity_instance) -> Union[str, None]:
|
def get_unit_name(unit: ifcopenshell.entity_instance) -> Union[str, None]:
|
||||||
if unit.is_a("IfcNamedUnit"):
|
if unit.is_a("IfcNamedUnit"):
|
||||||
return val(unit.Name)
|
return val(unit.Name)
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user