Simple-Track 2.0.5__tar.gz → 2.0.6__tar.gz
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.
- {simple_track-2.0.5 → simple_track-2.0.6}/PKG-INFO +1 -1
- {simple_track-2.0.5 → simple_track-2.0.6}/pyproject.toml +1 -1
- {simple_track-2.0.5 → simple_track-2.0.6}/src/Simple_Track.egg-info/PKG-INFO +1 -1
- {simple_track-2.0.5 → simple_track-2.0.6}/src/run_simple_track.py +3 -1
- {simple_track-2.0.5 → simple_track-2.0.6}/src/simpletrack/frame.py +2 -0
- {simple_track-2.0.5 → simple_track-2.0.6}/tests/test_frame.py +33 -0
- {simple_track-2.0.5 → simple_track-2.0.6}/LICENSE +0 -0
- {simple_track-2.0.5 → simple_track-2.0.6}/README.md +0 -0
- {simple_track-2.0.5 → simple_track-2.0.6}/setup.cfg +0 -0
- {simple_track-2.0.5 → simple_track-2.0.6}/src/Simple_Track.egg-info/SOURCES.txt +0 -0
- {simple_track-2.0.5 → simple_track-2.0.6}/src/Simple_Track.egg-info/dependency_links.txt +0 -0
- {simple_track-2.0.5 → simple_track-2.0.6}/src/Simple_Track.egg-info/entry_points.txt +0 -0
- {simple_track-2.0.5 → simple_track-2.0.6}/src/Simple_Track.egg-info/requires.txt +0 -0
- {simple_track-2.0.5 → simple_track-2.0.6}/src/Simple_Track.egg-info/top_level.txt +0 -0
- {simple_track-2.0.5 → simple_track-2.0.6}/src/simpletrack/__init__.py +0 -0
- {simple_track-2.0.5 → simple_track-2.0.6}/src/simpletrack/exceptions.py +0 -0
- {simple_track-2.0.5 → simple_track-2.0.6}/src/simpletrack/feature.py +0 -0
- {simple_track-2.0.5 → simple_track-2.0.6}/src/simpletrack/flow_solver.py +0 -0
- {simple_track-2.0.5 → simple_track-2.0.6}/src/simpletrack/frame_output.py +0 -0
- {simple_track-2.0.5 → simple_track-2.0.6}/src/simpletrack/frame_tracker.py +0 -0
- {simple_track-2.0.5 → simple_track-2.0.6}/src/simpletrack/load.py +0 -0
- {simple_track-2.0.5 → simple_track-2.0.6}/src/simpletrack/track.py +0 -0
- {simple_track-2.0.5 → simple_track-2.0.6}/src/simpletrack/utils.py +0 -0
- {simple_track-2.0.5 → simple_track-2.0.6}/tests/test_feature.py +0 -0
- {simple_track-2.0.5 → simple_track-2.0.6}/tests/test_flow_solver.py +0 -0
- {simple_track-2.0.5 → simple_track-2.0.6}/tests/test_frame_tracker.py +0 -0
- {simple_track-2.0.5 → simple_track-2.0.6}/tests/test_mwe_output.py +0 -0
- {simple_track-2.0.5 → simple_track-2.0.6}/tests/test_simple_track_and_load.py +0 -0
- {simple_track-2.0.5 → simple_track-2.0.6}/tests/test_utils.py +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: Simple-Track
|
|
3
|
-
Version: 2.0.
|
|
3
|
+
Version: 2.0.6
|
|
4
4
|
Summary: Threshold-based object tracking algorithm for 2D data
|
|
5
5
|
Author-email: Adam Gainford <adam.gainford@reading.ac.uk>, Thorwald Stein <t.h.m.stein@reading.ac.uk>
|
|
6
6
|
License-Expression: MPL-2.0
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: Simple-Track
|
|
3
|
-
Version: 2.0.
|
|
3
|
+
Version: 2.0.6
|
|
4
4
|
Summary: Threshold-based object tracking algorithm for 2D data
|
|
5
5
|
Author-email: Adam Gainford <adam.gainford@reading.ac.uk>, Thorwald Stein <t.h.m.stein@reading.ac.uk>
|
|
6
6
|
License-Expression: MPL-2.0
|
|
@@ -8,7 +8,9 @@ def run_tracking():
|
|
|
8
8
|
# Need to make sure that changes don't affect pyproject.toml entry points
|
|
9
9
|
# easiest just to pass the parser in to run_tracking.
|
|
10
10
|
parser = argparse.ArgumentParser(description="Run Simple-Track")
|
|
11
|
-
parser.add_argument(
|
|
11
|
+
parser.add_argument(
|
|
12
|
+
"configs", nargs="+", help="Path to one or more yaml config files."
|
|
13
|
+
)
|
|
12
14
|
args = parser.parse_args()
|
|
13
15
|
|
|
14
16
|
for config_path in args.configs:
|
|
@@ -176,6 +176,8 @@ class Frame:
|
|
|
176
176
|
# Provisionally set the lifetime field to 1 anywhere there is a feature
|
|
177
177
|
self._lifetime_field = np.zeros_like(self._feature_field)
|
|
178
178
|
self._lifetime_field[self._feature_field > 0] = 1
|
|
179
|
+
if np.max(self._feature_field) == 0:
|
|
180
|
+
return
|
|
179
181
|
self.max_id = int(np.max(self._feature_field))
|
|
180
182
|
self.populate_features()
|
|
181
183
|
|
|
@@ -200,6 +200,39 @@ def test_populate_features_with_no_feature_field():
|
|
|
200
200
|
)
|
|
201
201
|
|
|
202
202
|
|
|
203
|
+
def test_populate_features_with_feature_field_but_no_identifiable_features():
|
|
204
|
+
test_time = dt.datetime.now()
|
|
205
|
+
test_frame = Frame()
|
|
206
|
+
test_frame.time = test_time
|
|
207
|
+
|
|
208
|
+
test_feature_field = np.zeros((10, 10))
|
|
209
|
+
test_frame.feature_field = test_feature_field
|
|
210
|
+
|
|
211
|
+
test_frame.populate_features()
|
|
212
|
+
|
|
213
|
+
if len(test_frame.features) != 0:
|
|
214
|
+
raise TypeError(
|
|
215
|
+
f"No features expected for this test, got {len(test_frame.get_features())}"
|
|
216
|
+
)
|
|
217
|
+
|
|
218
|
+
|
|
219
|
+
def test_identify_and_populate_features_with_raw_field_but_no_identifiable_features():
|
|
220
|
+
test_time = dt.datetime.now()
|
|
221
|
+
test_frame = Frame()
|
|
222
|
+
test_frame.time = test_time
|
|
223
|
+
|
|
224
|
+
test_raw_field = np.zeros((10, 10))
|
|
225
|
+
test_frame.raw_field = test_raw_field
|
|
226
|
+
|
|
227
|
+
test_frame.identify_features(threshold=1, min_size=1)
|
|
228
|
+
# test_frame.populate_features() automatically happens within identify_features
|
|
229
|
+
|
|
230
|
+
if len(test_frame.features) != 0:
|
|
231
|
+
raise TypeError(
|
|
232
|
+
f"No features expected for this test, got {len(test_frame.get_features())}"
|
|
233
|
+
)
|
|
234
|
+
|
|
235
|
+
|
|
203
236
|
def test_assign_displacements_valid_inputs():
|
|
204
237
|
test_frame = Frame()
|
|
205
238
|
y_flow = np.ones((10, 10))
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|