py4dgeo 0.8.0__cp312-cp312-win_amd64.whl → 1.0.0__cp312-cp312-win_amd64.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- _py4dgeo.cp312-win_amd64.pyd +0 -0
- py4dgeo/__init__.py +4 -4
- py4dgeo/cloudcompare.py +0 -1
- py4dgeo/logger.py +7 -2
- py4dgeo/m3c2.py +0 -1
- py4dgeo/m3c2ep.py +4 -4
- py4dgeo/pbm3c2.py +569 -3745
- py4dgeo/py4dgeo_python.cpp +94 -38
- py4dgeo/segmentation.py +42 -5
- py4dgeo/util.py +106 -46
- py4dgeo-1.0.0.dist-info/DELVEWHEEL +2 -0
- {py4dgeo-0.8.0.dist-info → py4dgeo-1.0.0.dist-info}/METADATA +20 -16
- py4dgeo-1.0.0.dist-info/RECORD +22 -0
- py4dgeo-0.8.0.dist-info/DELVEWHEEL +0 -2
- py4dgeo-0.8.0.dist-info/RECORD +0 -23
- py4dgeo-0.8.0.dist-info/licenses/COPYING.md +0 -17
- {py4dgeo-0.8.0.data → py4dgeo-1.0.0.data}/platlib/libomp-a12116ba72d1d6820407cf30be23da04.dll +0 -0
- {py4dgeo-0.8.0.data → py4dgeo-1.0.0.data}/platlib/msvcp140-a4c2229bdc2a2a630acdc095b4d86008.dll +0 -0
- {py4dgeo-0.8.0.dist-info → py4dgeo-1.0.0.dist-info}/WHEEL +0 -0
- {py4dgeo-0.8.0.dist-info → py4dgeo-1.0.0.dist-info}/entry_points.txt +0 -0
- {py4dgeo-0.8.0.dist-info → py4dgeo-1.0.0.dist-info}/licenses/LICENSE.md +0 -0
_py4dgeo.cp312-win_amd64.pyd
CHANGED
|
Binary file
|
py4dgeo/__init__.py
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
"""""" # start delvewheel patch
|
|
2
|
-
def
|
|
2
|
+
def _delvewheel_patch_1_12_0():
|
|
3
3
|
import os
|
|
4
4
|
if os.path.isdir(libs_dir := os.path.abspath(os.path.join(os.path.dirname(__file__), os.pardir, '.'))):
|
|
5
5
|
os.add_dll_directory(libs_dir)
|
|
6
6
|
|
|
7
7
|
|
|
8
|
-
|
|
9
|
-
del
|
|
8
|
+
_delvewheel_patch_1_12_0()
|
|
9
|
+
del _delvewheel_patch_1_12_0
|
|
10
10
|
# end delvewheel patch
|
|
11
11
|
|
|
12
12
|
from py4dgeo.logger import set_py4dgeo_logfile
|
|
@@ -44,4 +44,4 @@ from py4dgeo.util import (
|
|
|
44
44
|
|
|
45
45
|
initialize_openmp_defaults()
|
|
46
46
|
|
|
47
|
-
from py4dgeo.pbm3c2 import
|
|
47
|
+
from py4dgeo.pbm3c2 import PBM3C2
|
py4dgeo/cloudcompare.py
CHANGED
py4dgeo/logger.py
CHANGED
|
@@ -8,8 +8,13 @@ def create_default_logger(filename=None):
|
|
|
8
8
|
# Create the logger instance
|
|
9
9
|
logger = logging.getLogger("py4dgeo")
|
|
10
10
|
|
|
11
|
-
#
|
|
12
|
-
logger.handlers
|
|
11
|
+
# Close and remove existing handlers to avoid duplication and leaks
|
|
12
|
+
for handler in logger.handlers[:]:
|
|
13
|
+
try:
|
|
14
|
+
handler.close()
|
|
15
|
+
except Exception:
|
|
16
|
+
pass
|
|
17
|
+
logger.removeHandler(handler)
|
|
13
18
|
|
|
14
19
|
# Apply default for logfile name
|
|
15
20
|
if filename is None:
|
py4dgeo/m3c2.py
CHANGED
py4dgeo/m3c2ep.py
CHANGED
|
@@ -803,12 +803,12 @@ def process_corepoint_list(
|
|
|
803
803
|
normal = n[np.newaxis, :]
|
|
804
804
|
M3C2_spread1[cp_idx] = np.sqrt(
|
|
805
805
|
np.matmul(np.matmul(normal, p1_CoG_Cxx), normal.T)
|
|
806
|
-
)
|
|
806
|
+
).squeeze()
|
|
807
807
|
M3C2_spread2[cp_idx] = np.sqrt(
|
|
808
808
|
np.matmul(np.matmul(normal, p2_CoG_Cxx), normal.T)
|
|
809
|
-
)
|
|
810
|
-
M3C2_cov1[cp_idx] = p1_CoG_Cxx
|
|
811
|
-
M3C2_cov2[cp_idx] = p2_CoG_Cxx
|
|
809
|
+
).squeeze()
|
|
810
|
+
M3C2_cov1[cp_idx] = p1_CoG_Cxx.squeeze()
|
|
811
|
+
M3C2_cov2[cp_idx] = p2_CoG_Cxx.squeeze()
|
|
812
812
|
|
|
813
813
|
pbarQueue.put((1, 0)) # point processed
|
|
814
814
|
|