mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-08-30 16:43:00 +00:00
Run black on IOS-Python
This commit is contained in:
+4
-10
@@ -9,18 +9,12 @@ for i, nm in enumerate(("no-mls", "mls", "mlsu")):
|
||||
appl = f.createIfcApplication(o, ifcopenshell.version, "IfcOpenShell", f"IfcOpenShell {ifcopenshell.version}")
|
||||
units = f.createIfcUnitAssignment(Units=[f.createIfcSIUnit(None, "LENGTHUNIT", None, "METRE")])
|
||||
ownerhist = f.createIfcOwnerHistory(pando, appl, ChangeAction="ADDED", CreationDate=int(time.time()))
|
||||
wall = f.createIfcWallStandardCase(
|
||||
ifcopenshell.guid.new(),
|
||||
ownerhist
|
||||
)
|
||||
if i in (1,2):
|
||||
wall = f.createIfcWallStandardCase(ifcopenshell.guid.new(), ownerhist)
|
||||
if i in (1, 2):
|
||||
mls = f.createIfcMaterialLayerSet([f.createIfcMaterialLayer(None, 0.1)])
|
||||
if i == 2:
|
||||
mls = f.createIfcMaterialLayerSetUsage(mls, 'AXIS2', 'POSITIVE', 0.)
|
||||
mls = f.createIfcMaterialLayerSetUsage(mls, "AXIS2", "POSITIVE", 0.0)
|
||||
f.createIfcRelAssociatesMaterial(
|
||||
ifcopenshell.guid.new(),
|
||||
ownerhist,
|
||||
RelatedObjects=[wall],
|
||||
RelatingMaterial=mls
|
||||
ifcopenshell.guid.new(), ownerhist, RelatedObjects=[wall], RelatingMaterial=mls
|
||||
)
|
||||
f.write(f"{'pass' if i == 2 else 'fail'}-wall-{nm}-ifc2x3.ifc")
|
||||
|
||||
Reference in New Issue
Block a user