mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-08-30 08:33:10 +00:00
Fixed all unit.add_si_unit uses after fd87747
Now they were causing `TypeError: Usecase.__init__() got an unexpected keyword argument 'name'`
This commit is contained in:
@@ -138,7 +138,7 @@ class Csv2Ifc:
|
||||
if unit:
|
||||
return unit
|
||||
else:
|
||||
unit = ifcopenshell.api.run("unit.add_si_unit", self.file, unit_type=unit_type, name=ifcopenshell.util.unit.si_type_names.get(unit_type, None))
|
||||
unit = ifcopenshell.api.run("unit.add_si_unit", self.file, unit_type=unit_type)
|
||||
# unit = self.file.createIfcContextDependentUnit(
|
||||
# self.file.createIfcDimensionalExponents(0, 0, 0, 0, 0, 0, 0), "USERDEFINED", symbol
|
||||
# )
|
||||
|
||||
Reference in New Issue
Block a user