mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-08-11 02:02:22 +00:00
move import statements to make dependencies optional
so regular clashing doesn't break if the dependencies are not present.
This commit is contained in:
committed by
Dion Moult
parent
957c719224
commit
50d7efa99b
@@ -10,8 +10,6 @@ import json
|
||||
import sys
|
||||
import argparse
|
||||
import logging
|
||||
from sklearn.cluster import OPTICS
|
||||
from collections import defaultdict
|
||||
|
||||
class Mesh:
|
||||
faces: []
|
||||
@@ -269,6 +267,9 @@ class IfcClasher:
|
||||
element.ObjectPlacement.RelativePlacement.RefDirection.DirectionRatios = (1.0, 0.0, 0.0)
|
||||
|
||||
def smart_group_clashes(self, clash_sets, max_clustering_distance):
|
||||
from sklearn.cluster import OPTICS
|
||||
from collections import defaultdict
|
||||
|
||||
count_of_input_clashes = 0
|
||||
count_of_clash_sets = 0
|
||||
count_of_smart_groups = 0
|
||||
|
||||
Reference in New Issue
Block a user