Simple-Track 2.0.0__tar.gz → 2.0.2__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.0 → simple_track-2.0.2}/PKG-INFO +10 -4
- {simple_track-2.0.0 → simple_track-2.0.2}/README.md +9 -3
- {simple_track-2.0.0 → simple_track-2.0.2}/pyproject.toml +2 -2
- {simple_track-2.0.0 → simple_track-2.0.2}/src/Simple_Track.egg-info/PKG-INFO +10 -4
- {simple_track-2.0.0 → simple_track-2.0.2}/src/Simple_Track.egg-info/SOURCES.txt +1 -1
- simple_track-2.0.2/src/Simple_Track.egg-info/entry_points.txt +2 -0
- simple_track-2.0.2/src/Simple_Track.egg-info/top_level.txt +2 -0
- {simple_track-2.0.0/src/simpletrack → simple_track-2.0.2/src}/run_simple_track.py +7 -2
- {simple_track-2.0.0 → simple_track-2.0.2}/src/simpletrack/track.py +7 -2
- simple_track-2.0.0/src/Simple_Track.egg-info/entry_points.txt +0 -2
- simple_track-2.0.0/src/Simple_Track.egg-info/top_level.txt +0 -1
- {simple_track-2.0.0 → simple_track-2.0.2}/LICENSE +0 -0
- {simple_track-2.0.0 → simple_track-2.0.2}/setup.cfg +0 -0
- {simple_track-2.0.0 → simple_track-2.0.2}/src/Simple_Track.egg-info/dependency_links.txt +0 -0
- {simple_track-2.0.0 → simple_track-2.0.2}/src/Simple_Track.egg-info/requires.txt +0 -0
- {simple_track-2.0.0 → simple_track-2.0.2}/src/simpletrack/__init__.py +0 -0
- {simple_track-2.0.0 → simple_track-2.0.2}/src/simpletrack/exceptions.py +0 -0
- {simple_track-2.0.0 → simple_track-2.0.2}/src/simpletrack/feature.py +0 -0
- {simple_track-2.0.0 → simple_track-2.0.2}/src/simpletrack/flow_solver.py +0 -0
- {simple_track-2.0.0 → simple_track-2.0.2}/src/simpletrack/frame.py +0 -0
- {simple_track-2.0.0 → simple_track-2.0.2}/src/simpletrack/frame_output.py +0 -0
- {simple_track-2.0.0 → simple_track-2.0.2}/src/simpletrack/frame_tracker.py +0 -0
- {simple_track-2.0.0 → simple_track-2.0.2}/src/simpletrack/load.py +0 -0
- {simple_track-2.0.0 → simple_track-2.0.2}/src/simpletrack/utils.py +0 -0
- {simple_track-2.0.0 → simple_track-2.0.2}/tests/test_feature.py +0 -0
- {simple_track-2.0.0 → simple_track-2.0.2}/tests/test_flow_solver.py +0 -0
- {simple_track-2.0.0 → simple_track-2.0.2}/tests/test_frame.py +0 -0
- {simple_track-2.0.0 → simple_track-2.0.2}/tests/test_frame_tracker.py +0 -0
- {simple_track-2.0.0 → simple_track-2.0.2}/tests/test_mwe_output.py +0 -0
- {simple_track-2.0.0 → simple_track-2.0.2}/tests/test_simple_track_and_load.py +0 -0
- {simple_track-2.0.0 → simple_track-2.0.2}/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.2
|
|
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
|
|
@@ -33,7 +33,13 @@ Features are tracked between consecutive frames of data by projecting feature fi
|
|
|
33
33
|
|
|
34
34
|
# Installation
|
|
35
35
|
|
|
36
|
-
|
|
36
|
+
Simple-Track can be installed using PyPi:
|
|
37
|
+
|
|
38
|
+
```
|
|
39
|
+
python3 -m pip install simple-track
|
|
40
|
+
```
|
|
41
|
+
|
|
42
|
+
Coming soon to conda-forge and uv
|
|
37
43
|
|
|
38
44
|
# User Guide
|
|
39
45
|
|
|
@@ -56,7 +62,7 @@ Simple-Track can be run in two ways:
|
|
|
56
62
|
* Simple-Track can be run from the command line with a config file as an additional argument:
|
|
57
63
|
|
|
58
64
|
```
|
|
59
|
-
|
|
65
|
+
simpletrack my_config.yaml
|
|
60
66
|
```
|
|
61
67
|
|
|
62
68
|
* The `my_config.yaml` file contains the parameters for running Simple-Track. The necessary parameters for running Simple-Track from the command line are shown below:
|
|
@@ -197,6 +203,7 @@ OUTPUT:
|
|
|
197
203
|
path: ./output
|
|
198
204
|
experiment_name: Simple-Track Experiment # Name of experiment to add to output files
|
|
199
205
|
save_data: true # Whether to save data to output
|
|
206
|
+
skip_tracking: false # Whether to skip tracking and just output feature properties
|
|
200
207
|
|
|
201
208
|
FEATURE:
|
|
202
209
|
threshold: 1 # Threshold used for defining a feature
|
|
@@ -211,7 +218,6 @@ FLOW_SOLVER:
|
|
|
211
218
|
apply_tukey_filtering: True # Apply a 2D Tukey window to each subdomain before phase cross-correlation
|
|
212
219
|
|
|
213
220
|
TRACKING:
|
|
214
|
-
skip_tracking: false # Whether to skip tracking and just output feature properties
|
|
215
221
|
overlap_nbhood: 5 # Radius of halo in pixels for orphan storms - big halo assumes storms may spawn "children" at a distance multiple pixels away
|
|
216
222
|
overlap_threshold: 0.6 # Minimum fraction of overlap
|
|
217
223
|
retain_lifetime_on_split: True # If a child Feature splits from its parent feature, this determines whether the child Feature should carry over the lifetime from the parent or whether its lifetime should be set to 1
|
|
@@ -11,7 +11,13 @@ Features are tracked between consecutive frames of data by projecting feature fi
|
|
|
11
11
|
|
|
12
12
|
# Installation
|
|
13
13
|
|
|
14
|
-
|
|
14
|
+
Simple-Track can be installed using PyPi:
|
|
15
|
+
|
|
16
|
+
```
|
|
17
|
+
python3 -m pip install simple-track
|
|
18
|
+
```
|
|
19
|
+
|
|
20
|
+
Coming soon to conda-forge and uv
|
|
15
21
|
|
|
16
22
|
# User Guide
|
|
17
23
|
|
|
@@ -34,7 +40,7 @@ Simple-Track can be run in two ways:
|
|
|
34
40
|
* Simple-Track can be run from the command line with a config file as an additional argument:
|
|
35
41
|
|
|
36
42
|
```
|
|
37
|
-
|
|
43
|
+
simpletrack my_config.yaml
|
|
38
44
|
```
|
|
39
45
|
|
|
40
46
|
* The `my_config.yaml` file contains the parameters for running Simple-Track. The necessary parameters for running Simple-Track from the command line are shown below:
|
|
@@ -175,6 +181,7 @@ OUTPUT:
|
|
|
175
181
|
path: ./output
|
|
176
182
|
experiment_name: Simple-Track Experiment # Name of experiment to add to output files
|
|
177
183
|
save_data: true # Whether to save data to output
|
|
184
|
+
skip_tracking: false # Whether to skip tracking and just output feature properties
|
|
178
185
|
|
|
179
186
|
FEATURE:
|
|
180
187
|
threshold: 1 # Threshold used for defining a feature
|
|
@@ -189,7 +196,6 @@ FLOW_SOLVER:
|
|
|
189
196
|
apply_tukey_filtering: True # Apply a 2D Tukey window to each subdomain before phase cross-correlation
|
|
190
197
|
|
|
191
198
|
TRACKING:
|
|
192
|
-
skip_tracking: false # Whether to skip tracking and just output feature properties
|
|
193
199
|
overlap_nbhood: 5 # Radius of halo in pixels for orphan storms - big halo assumes storms may spawn "children" at a distance multiple pixels away
|
|
194
200
|
overlap_threshold: 0.6 # Minimum fraction of overlap
|
|
195
201
|
retain_lifetime_on_split: True # If a child Feature splits from its parent feature, this determines whether the child Feature should carry over the lifetime from the parent or whether its lifetime should be set to 1
|
|
@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
|
|
|
4
4
|
|
|
5
5
|
[project]
|
|
6
6
|
name = "Simple-Track"
|
|
7
|
-
version = "2.0.
|
|
7
|
+
version = "2.0.2"
|
|
8
8
|
authors = [
|
|
9
9
|
{ name="Adam Gainford", email="adam.gainford@reading.ac.uk" },
|
|
10
10
|
{ name="Thorwald Stein", email="t.h.m.stein@reading.ac.uk"}
|
|
@@ -29,7 +29,7 @@ dependencies = [
|
|
|
29
29
|
]
|
|
30
30
|
|
|
31
31
|
[project.scripts]
|
|
32
|
-
|
|
32
|
+
simpletrack = "run_simple_track:run_tracking"
|
|
33
33
|
|
|
34
34
|
[project.urls]
|
|
35
35
|
Homepage = "https://github.com/ParaChute-UK/simple-track/"
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: Simple-Track
|
|
3
|
-
Version: 2.0.
|
|
3
|
+
Version: 2.0.2
|
|
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
|
|
@@ -33,7 +33,13 @@ Features are tracked between consecutive frames of data by projecting feature fi
|
|
|
33
33
|
|
|
34
34
|
# Installation
|
|
35
35
|
|
|
36
|
-
|
|
36
|
+
Simple-Track can be installed using PyPi:
|
|
37
|
+
|
|
38
|
+
```
|
|
39
|
+
python3 -m pip install simple-track
|
|
40
|
+
```
|
|
41
|
+
|
|
42
|
+
Coming soon to conda-forge and uv
|
|
37
43
|
|
|
38
44
|
# User Guide
|
|
39
45
|
|
|
@@ -56,7 +62,7 @@ Simple-Track can be run in two ways:
|
|
|
56
62
|
* Simple-Track can be run from the command line with a config file as an additional argument:
|
|
57
63
|
|
|
58
64
|
```
|
|
59
|
-
|
|
65
|
+
simpletrack my_config.yaml
|
|
60
66
|
```
|
|
61
67
|
|
|
62
68
|
* The `my_config.yaml` file contains the parameters for running Simple-Track. The necessary parameters for running Simple-Track from the command line are shown below:
|
|
@@ -197,6 +203,7 @@ OUTPUT:
|
|
|
197
203
|
path: ./output
|
|
198
204
|
experiment_name: Simple-Track Experiment # Name of experiment to add to output files
|
|
199
205
|
save_data: true # Whether to save data to output
|
|
206
|
+
skip_tracking: false # Whether to skip tracking and just output feature properties
|
|
200
207
|
|
|
201
208
|
FEATURE:
|
|
202
209
|
threshold: 1 # Threshold used for defining a feature
|
|
@@ -211,7 +218,6 @@ FLOW_SOLVER:
|
|
|
211
218
|
apply_tukey_filtering: True # Apply a 2D Tukey window to each subdomain before phase cross-correlation
|
|
212
219
|
|
|
213
220
|
TRACKING:
|
|
214
|
-
skip_tracking: false # Whether to skip tracking and just output feature properties
|
|
215
221
|
overlap_nbhood: 5 # Radius of halo in pixels for orphan storms - big halo assumes storms may spawn "children" at a distance multiple pixels away
|
|
216
222
|
overlap_threshold: 0.6 # Minimum fraction of overlap
|
|
217
223
|
retain_lifetime_on_split: True # If a child Feature splits from its parent feature, this determines whether the child Feature should carry over the lifetime from the parent or whether its lifetime should be set to 1
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
LICENSE
|
|
2
2
|
README.md
|
|
3
3
|
pyproject.toml
|
|
4
|
+
src/run_simple_track.py
|
|
4
5
|
src/Simple_Track.egg-info/PKG-INFO
|
|
5
6
|
src/Simple_Track.egg-info/SOURCES.txt
|
|
6
7
|
src/Simple_Track.egg-info/dependency_links.txt
|
|
@@ -15,7 +16,6 @@ src/simpletrack/frame.py
|
|
|
15
16
|
src/simpletrack/frame_output.py
|
|
16
17
|
src/simpletrack/frame_tracker.py
|
|
17
18
|
src/simpletrack/load.py
|
|
18
|
-
src/simpletrack/run_simple_track.py
|
|
19
19
|
src/simpletrack/track.py
|
|
20
20
|
src/simpletrack/utils.py
|
|
21
21
|
tests/test_feature.py
|
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
import sys
|
|
2
2
|
|
|
3
|
-
from
|
|
3
|
+
from simpletrack import Tracker
|
|
4
4
|
|
|
5
|
-
|
|
5
|
+
|
|
6
|
+
def run_tracking():
|
|
6
7
|
if len(sys.argv) < 2:
|
|
7
8
|
raise Exception("Running SimpleTrack requires path to at least one config")
|
|
8
9
|
|
|
@@ -10,3 +11,7 @@ if __name__ == "__main__":
|
|
|
10
11
|
for config_path in config_paths:
|
|
11
12
|
# With None passed into run method, uses input path in config
|
|
12
13
|
Tracker(config_path).run()
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
if __name__ == "__main__":
|
|
17
|
+
run_tracking()
|
|
@@ -45,6 +45,8 @@ class Tracker:
|
|
|
45
45
|
|
|
46
46
|
if "INPUT" in self.config:
|
|
47
47
|
self.file_type = self.config["INPUT"].get("file_type", None)
|
|
48
|
+
else:
|
|
49
|
+
self.file_type = None
|
|
48
50
|
|
|
49
51
|
if "FLOW_SOLVER" in self.config:
|
|
50
52
|
self.flow_solver = FlowSolver(**self.config["FLOW_SOLVER"])
|
|
@@ -53,16 +55,19 @@ class Tracker:
|
|
|
53
55
|
|
|
54
56
|
if "TRACKING" in self.config:
|
|
55
57
|
self.frame_tracker = FrameTracker(**self.config["TRACKING"])
|
|
56
|
-
self.skip_tracking = self.config["TRACKING"].get("skip_tracking", False)
|
|
57
58
|
else:
|
|
58
59
|
self.frame_tracker = FrameTracker()
|
|
59
|
-
self.skip_tracking = False
|
|
60
60
|
|
|
61
61
|
if "OUTPUT" in self.config:
|
|
62
|
+
self.skip_tracking = self.config["TRACKING"].get("skip_tracking", False)
|
|
62
63
|
output_path = self.config["OUTPUT"].get("path", "./output")
|
|
63
64
|
expt_name = self.config["OUTPUT"].get(
|
|
64
65
|
"experiment_name", "Simple-Track Experiment"
|
|
65
66
|
)
|
|
67
|
+
else:
|
|
68
|
+
self.skip_tracking = False
|
|
69
|
+
output_path = "./output"
|
|
70
|
+
expt_name = "Simple-Track Experiment"
|
|
66
71
|
|
|
67
72
|
# Output only if flagged in config
|
|
68
73
|
self.frame_output = None
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
simpletrack
|
|
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
|