mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-08-31 00:46:36 +00:00
Run black on IOS-Python
This commit is contained in:
+8
-15
@@ -1,26 +1,19 @@
|
||||
import ifcopenshell
|
||||
|
||||
dims = [
|
||||
(1,0,0,0,0,0,0),
|
||||
(1,1,0,0,0,0,0),
|
||||
(0,1,0,0,0,0,0),
|
||||
(-1,0,0,0,0,0,0),
|
||||
(2,0,0,0,0,0,0),
|
||||
(1, 0, 0, 0, 0, 0, 0),
|
||||
(1, 1, 0, 0, 0, 0, 0),
|
||||
(0, 1, 0, 0, 0, 0, 0),
|
||||
(-1, 0, 0, 0, 0, 0, 0),
|
||||
(2, 0, 0, 0, 0, 0, 0),
|
||||
]
|
||||
|
||||
for i, d in enumerate(dims):
|
||||
f = ifcopenshell.file(schema="IFC2X3")
|
||||
f.createIfcConversionBasedUnit(
|
||||
f.createIfcDimensionalExponents(*d),
|
||||
'LENGTHUNIT',
|
||||
'beard-second',
|
||||
f.createIfcMeasureWithUnit(
|
||||
f.createIfcLengthMeasure(5.0),
|
||||
f.createIfcSIUnit(
|
||||
Prefix='NANO',
|
||||
Name='METRE'
|
||||
)
|
||||
)
|
||||
|
||||
"LENGTHUNIT",
|
||||
"beard-second",
|
||||
f.createIfcMeasureWithUnit(f.createIfcLengthMeasure(5.0), f.createIfcSIUnit(Prefix="NANO", Name="METRE")),
|
||||
)
|
||||
f.write(f"{'pass' if i == 0 else 'fail'}-conv-unit-{i}-ifc2x3.ifc")
|
||||
|
||||
Reference in New Issue
Block a user