mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-08-20 04:04:00 +00:00
ruff: sort imports
This commit is contained in:
@@ -1,6 +1,7 @@
|
||||
import time
|
||||
|
||||
import ifcopenshell
|
||||
|
||||
from ...fixture_generate import normalize_header, pass_if, write_fixture
|
||||
|
||||
for i in range(3):
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
import ifcopenshell
|
||||
|
||||
from ...fixture_generate import normalize_header, pass_if, write_fixture
|
||||
|
||||
for i, box_alignment in enumerate(["top-left", "center", "invalid", "CENTER"]):
|
||||
|
||||
@@ -1,6 +1,7 @@
|
||||
import time
|
||||
|
||||
import ifcopenshell
|
||||
|
||||
from ...fixture_generate import normalize_header, pass_if, write_fixture
|
||||
|
||||
latitudes = [
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
import ifcopenshell
|
||||
|
||||
from ...fixture_generate import normalize_header, pass_if, write_fixture
|
||||
|
||||
for depth in (-1.0, 0.0, 1.0):
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
import ifcopenshell
|
||||
|
||||
from ...fixture_generate import fail_if, normalize_header, write_fixture
|
||||
|
||||
for i, (r1, r2) in enumerate(
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
import ifcopenshell
|
||||
|
||||
from ...fixture_generate import normalize_header, pass_if, write_fixture
|
||||
|
||||
options = {
|
||||
|
||||
@@ -2,6 +2,7 @@ import itertools
|
||||
import time
|
||||
|
||||
import ifcopenshell
|
||||
|
||||
from ...fixture_generate import normalize_header, pass_if, write_fixture
|
||||
|
||||
for pty, ety in itertools.product(("GRILLE", "USERDEFINED"), (None, "Something")):
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
import ifcopenshell
|
||||
|
||||
from ...fixture_generate import fail_if, normalize_header, write_fixture
|
||||
|
||||
create_none = lambda f: None
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
import ifcopenshell
|
||||
|
||||
from ...fixture_generate import fail_if, normalize_header, write_fixture
|
||||
|
||||
create_plane = lambda f: f.createIfcPlane(f.createIfcAxis2Placement3D(f.createIfcCartesianPoint((0.0, 0.0, 0.0))))
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
import ifcopenshell
|
||||
|
||||
from ...fixture_generate import normalize_header, pass_if, write_fixture
|
||||
|
||||
pts = [(0.0, 0.0), (1.0, 0.0), (1.0, 1.0)]
|
||||
|
||||
@@ -1,6 +1,7 @@
|
||||
import itertools
|
||||
|
||||
import ifcopenshell
|
||||
|
||||
from ...fixture_generate import normalize_header, pass_if, write_fixture
|
||||
|
||||
defaults = {"Girth": 1.0, "WallThickness": 0.11}
|
||||
|
||||
@@ -1,5 +1,6 @@
|
||||
import ifcopenshell
|
||||
import ifcopenshell.util.schema
|
||||
|
||||
from ...fixture_generate import normalize_header, pass_if, write_fixture
|
||||
|
||||
depth = 1.0
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
import ifcopenshell
|
||||
|
||||
from ...fixture_generate import normalize_header, write_fixture
|
||||
|
||||
coords = [(0.0, 0.0), (10.0, 0.0), (10.0, 10.0), (0.0, 10.0)]
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
import ifcopenshell
|
||||
|
||||
from ...fixture_generate import normalize_header, write_fixture
|
||||
|
||||
coords = [(0.0, 0.0), (10.0, 0.0), (10.0, 10.0), (0.0, 10.0)]
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
import ifcopenshell
|
||||
|
||||
from ...fixture_generate import normalize_header, pass_if, write_fixture
|
||||
|
||||
dims = [
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
import ifcopenshell
|
||||
|
||||
from ...fixture_generate import normalize_header, pass_if, write_fixture
|
||||
|
||||
coords = [(0.0, 0.0), (10.0, 0.0)]
|
||||
|
||||
@@ -1,6 +1,7 @@
|
||||
import time
|
||||
|
||||
import ifcopenshell
|
||||
|
||||
from ...fixture_generate import normalize_header, pass_if, write_fixture
|
||||
|
||||
names = [("Same", "Same"), ("Different", "SomethingElse")]
|
||||
|
||||
@@ -1,6 +1,7 @@
|
||||
import time
|
||||
|
||||
import ifcopenshell
|
||||
|
||||
from ...fixture_generate import normalize_header, pass_if, write_fixture
|
||||
|
||||
for i, nm in enumerate(("no-mls", "mls", "mlsu")):
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
import ifcopenshell
|
||||
|
||||
from ...fixture_generate import normalize_header, pass_if, write_fixture
|
||||
|
||||
for i, type_decl in enumerate(("IfcLengthMeasure", "IfcPlaneAngleMeasure")):
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
import ifcopenshell
|
||||
|
||||
from ...fixture_generate import normalize_header, pass_if, write_fixture
|
||||
|
||||
make_nd = lambda d: lambda *c: (c + (0.0,)) if d == 3 else c
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
import ifcopenshell
|
||||
|
||||
from ...fixture_generate import normalize_header, pass_if, write_fixture
|
||||
|
||||
task = lambda f: f.createIfcTask(ifcopenshell.guid.new(), None, "sleep", IsMilestone=True)
|
||||
|
||||
@@ -1,6 +1,7 @@
|
||||
import itertools
|
||||
|
||||
import ifcopenshell
|
||||
|
||||
from ...fixture_generate import normalize_header, pass_if, write_fixture
|
||||
|
||||
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
import ifcopenshell
|
||||
|
||||
from ...fixture_generate import normalize_header, pass_if, write_fixture
|
||||
|
||||
for cnt in range(0, 3):
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
import ifcopenshell
|
||||
|
||||
from ...fixture_generate import normalize_header, pass_if, write_fixture
|
||||
|
||||
fns = [
|
||||
|
||||
@@ -1,6 +1,7 @@
|
||||
import time
|
||||
|
||||
import ifcopenshell
|
||||
|
||||
from ...fixture_generate import normalize_header, pass_if, write_fixture
|
||||
|
||||
for ents in [
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
import ifcopenshell
|
||||
|
||||
from ...fixture_generate import fail_if, normalize_header, write_fixture
|
||||
|
||||
segs = [
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
import ifcopenshell
|
||||
|
||||
from ...fixture_generate import normalize_header, write_fixture
|
||||
|
||||
cases = (
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
import ifcopenshell
|
||||
|
||||
from ...fixture_generate import normalize_header, write_fixture
|
||||
|
||||
ifc_file = ifcopenshell.file(schema="IFC2X3")
|
||||
|
||||
Reference in New Issue
Block a user