mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-08-17 19:09:07 +00:00
Sort imports
This commit is contained in:
@@ -18,10 +18,11 @@
|
||||
# You should have received a copy of the GNU Lesser General Public License
|
||||
# along with IfcClash. If not, see <http://www.gnu.org/licenses/>.
|
||||
|
||||
import sys
|
||||
import argparse
|
||||
import json
|
||||
import logging
|
||||
import argparse
|
||||
import sys
|
||||
|
||||
from .ifcclash import Clasher, ClashSettings
|
||||
|
||||
parser = argparse.ArgumentParser(description="Clashes geometry between two IFC files")
|
||||
|
||||
@@ -20,15 +20,17 @@
|
||||
|
||||
|
||||
from __future__ import annotations
|
||||
|
||||
import json
|
||||
import time
|
||||
import numpy as np
|
||||
import multiprocessing
|
||||
import time
|
||||
from logging import Logger
|
||||
from typing import Literal, TypedDict, Union
|
||||
|
||||
import ifcopenshell
|
||||
import ifcopenshell.geom
|
||||
import ifcopenshell.util.selector
|
||||
from logging import Logger
|
||||
from typing import Literal, TypedDict, Union
|
||||
import numpy as np
|
||||
from typing_extensions import NotRequired, assert_never
|
||||
|
||||
|
||||
@@ -256,9 +258,10 @@ class Clasher:
|
||||
json.dump(clash_sets, clashes_file, indent=4)
|
||||
|
||||
def smart_group_clashes(self, clash_sets: list[ClashSet], max_clustering_distance: float):
|
||||
from sklearn.cluster import OPTICS
|
||||
from collections import defaultdict
|
||||
|
||||
from sklearn.cluster import OPTICS
|
||||
|
||||
count_of_input_clashes = 0
|
||||
count_of_clash_sets = 0
|
||||
count_of_smart_groups = 0
|
||||
|
||||
@@ -21,6 +21,5 @@
|
||||
import os
|
||||
import subprocess
|
||||
|
||||
|
||||
cmd = "pyinstaller ./bootstrap.py --name ifcclash --onefile --clean"
|
||||
subprocess.check_output(cmd, shell=True)
|
||||
|
||||
Reference in New Issue
Block a user