ronshnapp / MyPTV

MyPTV is an open source library designed for 3D particle Tracking (3D-PTV) measurements
MIT License
41 stars 15 forks source link

bug or feature? #12

Closed alexlib closed 2 years ago

alexlib commented 2 years ago
(myptv) PS C:\Users\alex\repos\test_cavity_myptv\example> python ../myptv/example/workflow.py .\params_file.yml matching

 given inputs -
params file name: .\params_file.yml
action: matching

Starting stereo-matching.

Traceback (most recent call last):
  File "C:\Users\alex\repos\test_cavity_myptv\myptv\example\workflow.py", line 623, in <module>
    wf = workflow(fname, action)
  File "C:\Users\alex\repos\test_cavity_myptv\myptv\example\workflow.py", line 75, in __init__
    self.do_matching()
  File "C:\Users\alex\repos\test_cavity_myptv\myptv\example\workflow.py", line 480, in do_matching
    mbf.get_particles(frames=frames)
  File "C:\Users\alex\miniconda3\envs\myptv\lib\site-packages\myptv\particle_matching_mod.py", line 161, in get_particles
    itm = initiate_time_matching(self.imsys, pd, pd1,
  File "C:\Users\alex\miniconda3\envs\myptv\lib\site-packages\myptv\particle_matching_mod.py", line 713, in __init__
    self.trees[k] = KDTree(self.pd1[k])
  File "C:\Users\alex\miniconda3\envs\myptv\lib\site-packages\scipy\spatial\_kdtree.py", line 343, in __init__
    super().__init__(data, leafsize, compact_nodes, copy_data,
  File "_ckdtree.pyx", line 567, in scipy.spatial._ckdtree.cKDTree.__init__
ValueError: data must be 2 dimensions
alexlib commented 2 years ago

please take a look at the https://github.com/alexlib/test_cavity_myptv - I probably mistyped something simple, but cannot find it.

alexlib commented 2 years ago

happens also in the /myptv/example folder

alexlib commented 2 years ago

my mistake