Skip to content

Commit

Permalink
small bug fix in 2D_tracking
Browse files Browse the repository at this point in the history
  • Loading branch information
ronshnapp committed Oct 2, 2023
1 parent 6b81c66 commit 88b2e9c
Show file tree
Hide file tree
Showing 6 changed files with 13 additions and 6 deletions.
2 changes: 1 addition & 1 deletion Readme.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
December 25, 2022
Version: 0.6.4
Version: 0.6.5

<img src="./user_manual/figs/logo.png" style="zoom:20%;" />

Expand Down
9 changes: 8 additions & 1 deletion myptv/tracking_2D_mod.py
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,8 @@ class track_2D(tracker_four_frames):
'''

def __init__(self, camera, blob_fnames, z_particles, mean_flow = 0.0,
d_max=1e10, dv_max=1e10, reverse_eta_zeta = False):
d_max=1e10, dv_max=1e10, reverse_eta_zeta = False,
store_candidates=False):
'''
inputs -
Expand Down Expand Up @@ -68,6 +69,11 @@ def __init__(self, camera, blob_fnames, z_particles, mean_flow = 0.0,
data points were given where the x, y coordinates
are transposed (as happens, e.g., if using
matplotlib.pyplot.imshow).
store_candidates - boolean indicator, defaul on False. If True, the
tracker will store all the candidate links that were
considered in the tracking process for future
analysis.
'''

self.cam = camera
Expand All @@ -89,6 +95,7 @@ def __init__(self, camera, blob_fnames, z_particles, mean_flow = 0.0,
self.traj_lengths = {}
self.N_four_frames = 0
self.N_nearest_neighbour = 0
self.store_candidates = store_candidates



Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
setup(
name='myptv',
packages=find_packages(include=['myptv']),
version='0.6.4',
version='0.6.5',
description='A 3D Particle Tracking Velocimetry library',
install_requires=['numpy', 'scipy', 'scikit-image','pandas','matplotlib','pyyaml', 'tk', 'Pillow'],
author='Ron Shnapp',
Expand Down
4 changes: 2 additions & 2 deletions user_manual/user_manual.log
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
This is pdfTeX, Version 3.14159265-2.6-1.40.18 (TeX Live 2017/Debian) (preloaded format=pdflatex 2023.7.13) 12 AUG 2023 18:55
This is pdfTeX, Version 3.14159265-2.6-1.40.18 (TeX Live 2017/Debian) (preloaded format=pdflatex 2023.7.13) 2 OCT 2023 23:44
entering extended mode
restricted \write18 enabled.
%&-line parsing enabled.
Expand Down Expand Up @@ -765,7 +765,7 @@ fb></usr/share/texmf/fonts/type1/public/cm-super/sfti1000.pfb></usr/share/texmf
/fonts/type1/public/cm-super/sftt0900.pfb></usr/share/texmf/fonts/type1/public/
cm-super/sftt1000.pfb></usr/share/texmf/fonts/type1/public/cm-super/sftt1200.pf
b></usr/share/texmf/fonts/type1/public/cm-super/sftt1440.pfb>
Output written on user_manual.pdf (29 pages, 4016879 bytes).
Output written on user_manual.pdf (29 pages, 4016843 bytes).
PDF statistics:
882 PDF objects out of 1000 (max. 8388607)
757 compressed objects within 8 object streams
Expand Down
Binary file modified user_manual/user_manual.pdf
Binary file not shown.
2 changes: 1 addition & 1 deletion user_manual/user_manual.tex
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@

\begin{minipage}{14cm}
{\small \sffamily
Version: 0.6.4 \\
Version: 0.6.5 \\
Last updated: \today \\
Github repository: \url{https://github.com/ronshnapp/MyPTV} \\
Get help \& interact with our community: \url{https://github.com/ronshnapp/MyPTV/discussions}\\
Expand Down

0 comments on commit 88b2e9c

Please sign in to comment.