Sort imports

This commit is contained in:
Andrej730
2025-12-19 18:53:04 +05:00
parent 29176330e8
commit 13be6ccd45
731 changed files with 2234 additions and 1709 deletions
+3 -2
View File
@@ -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")
+8 -5
View File
@@ -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
-1
View File
@@ -21,6 +21,5 @@
import os
import subprocess
cmd = "pyinstaller ./bootstrap.py --name ifcclash --onefile --clean"
subprocess.check_output(cmd, shell=True)