py4dgeo 0.8.0__cp311-cp311-win_amd64.whl → 1.0.0__cp311-cp311-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.
Binary file
py4dgeo/__init__.py CHANGED
@@ -1,12 +1,12 @@
1
1
  """""" # start delvewheel patch
2
- def _delvewheel_patch_1_11_1():
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
- _delvewheel_patch_1_11_1()
9
- del _delvewheel_patch_1_11_1
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
@@ -1,6 +1,5 @@
1
1
  from py4dgeo.m3c2 import M3C2
2
2
 
3
-
4
3
  _cloudcompare_param_mapping = {
5
4
  "normalscale": "normal_radii",
6
5
  "registrationerror": "reg_error",
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
- # Reset the handlers to avoid handler duplication
12
- logger.handlers.clear()
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
@@ -16,7 +16,6 @@ import laspy
16
16
 
17
17
  import _py4dgeo
18
18
 
19
-
20
19
  logger = logging.getLogger("py4dgeo")
21
20
 
22
21
 
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