traccuracy 0.4.2__tar.gz → 0.5.0__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.
- {traccuracy-0.4.2 → traccuracy-0.5.0}/.github/PULL_REQUEST_TEMPLATE/new_matcher_metric.md +2 -0
- {traccuracy-0.4.2 → traccuracy-0.5.0}/.github/workflows/benchmark-report.yml +13 -14
- {traccuracy-0.4.2 → traccuracy-0.5.0}/.github/workflows/ci.yml +98 -78
- {traccuracy-0.4.2 → traccuracy-0.5.0}/.gitignore +0 -3
- {traccuracy-0.4.2 → traccuracy-0.5.0}/.pre-commit-config.yaml +7 -4
- {traccuracy-0.4.2/src/traccuracy.egg-info → traccuracy-0.5.0}/PKG-INFO +11 -16
- {traccuracy-0.4.2 → traccuracy-0.5.0}/README.md +6 -12
- {traccuracy-0.4.2 → traccuracy-0.5.0}/developer_notes.md +9 -8
- traccuracy-0.5.0/docs/source/cli.md +8 -0
- {traccuracy-0.4.2 → traccuracy-0.5.0}/docs/source/conf.py +1 -1
- {traccuracy-0.4.2 → traccuracy-0.5.0}/docs/source/index.md +2 -0
- {traccuracy-0.4.2 → traccuracy-0.5.0}/docs/source/metrics/basic.md +3 -3
- {traccuracy-0.4.2 → traccuracy-0.5.0}/docs/source/metrics/chota.md +3 -14
- traccuracy-0.5.0/docs/source/metrics/complete-tracks-by-length.md +57 -0
- {traccuracy-0.4.2 → traccuracy-0.5.0}/docs/source/metrics/complete_tracks.md +3 -3
- {traccuracy-0.4.2 → traccuracy-0.5.0}/docs/source/metrics/ctc.md +5 -15
- {traccuracy-0.4.2 → traccuracy-0.5.0}/docs/source/metrics/divisions.md +2 -2
- traccuracy-0.5.0/docs/source/metrics/figures/LICENSE-kaggle-cell-tracking-competition.txt +28 -0
- traccuracy-0.5.0/docs/source/metrics/figures/division_jaccard.svg +1101 -0
- traccuracy-0.5.0/docs/source/metrics/figures/edge_jaccard.svg +1071 -0
- traccuracy-0.5.0/docs/source/metrics/figures/late_division.svg +980 -0
- traccuracy-0.5.0/docs/source/metrics/metrics.md +74 -0
- traccuracy-0.5.0/docs/source/metrics/swedj.md +124 -0
- {traccuracy-0.4.2 → traccuracy-0.5.0}/docs/source/metrics/track_overlap.md +2 -2
- traccuracy-0.5.0/justfile +40 -0
- {traccuracy-0.4.2 → traccuracy-0.5.0}/pyproject.toml +7 -31
- {traccuracy-0.4.2 → traccuracy-0.5.0}/scripts/download_test_data.py +1 -0
- {traccuracy-0.4.2 → traccuracy-0.5.0}/scripts/test_case_report.py +7 -5
- {traccuracy-0.4.2 → traccuracy-0.5.0}/src/traccuracy/_tracking_graph.py +122 -19
- {traccuracy-0.4.2 → traccuracy-0.5.0}/src/traccuracy/cli.py +0 -3
- {traccuracy-0.4.2 → traccuracy-0.5.0}/src/traccuracy/loaders/__init__.py +8 -1
- {traccuracy-0.4.2 → traccuracy-0.5.0}/src/traccuracy/loaders/_ctc.py +21 -2
- {traccuracy-0.4.2 → traccuracy-0.5.0}/src/traccuracy/loaders/_geff.py +15 -2
- traccuracy-0.5.0/src/traccuracy/loaders/_napari.py +390 -0
- {traccuracy-0.4.2 → traccuracy-0.5.0}/src/traccuracy/loaders/_point.py +18 -2
- {traccuracy-0.4.2 → traccuracy-0.5.0}/src/traccuracy/matchers/_base.py +2 -2
- {traccuracy-0.4.2 → traccuracy-0.5.0}/src/traccuracy/matchers/_compute_overlap.py +9 -5
- {traccuracy-0.4.2 → traccuracy-0.5.0}/src/traccuracy/matchers/_ctc.py +8 -2
- {traccuracy-0.4.2 → traccuracy-0.5.0}/src/traccuracy/matchers/_iou.py +68 -67
- {traccuracy-0.4.2 → traccuracy-0.5.0}/src/traccuracy/matchers/_point.py +20 -45
- {traccuracy-0.4.2 → traccuracy-0.5.0}/src/traccuracy/metrics/__init__.py +4 -0
- traccuracy-0.5.0/src/traccuracy/metrics/_base.py +386 -0
- {traccuracy-0.4.2 → traccuracy-0.5.0}/src/traccuracy/metrics/_basic.py +23 -3
- {traccuracy-0.4.2 → traccuracy-0.5.0}/src/traccuracy/metrics/_cca.py +12 -3
- {traccuracy-0.4.2 → traccuracy-0.5.0}/src/traccuracy/metrics/_chota.py +6 -6
- {traccuracy-0.4.2 → traccuracy-0.5.0}/src/traccuracy/metrics/_complete_tracks.py +30 -76
- traccuracy-0.5.0/src/traccuracy/metrics/_complete_tracks_by_length.py +173 -0
- traccuracy-0.5.0/src/traccuracy/metrics/_compute_complete_tracks_by_length.py +446 -0
- {traccuracy-0.4.2 → traccuracy-0.5.0}/src/traccuracy/metrics/_ctc.py +14 -7
- {traccuracy-0.4.2 → traccuracy-0.5.0}/src/traccuracy/metrics/_divisions.py +25 -11
- {traccuracy-0.4.2 → traccuracy-0.5.0}/src/traccuracy/metrics/_results.py +11 -11
- traccuracy-0.5.0/src/traccuracy/metrics/_swedj.py +574 -0
- {traccuracy-0.4.2 → traccuracy-0.5.0}/src/traccuracy/metrics/_track_overlap.py +8 -2
- {traccuracy-0.4.2 → traccuracy-0.5.0}/src/traccuracy/track_errors/_basic.py +29 -19
- {traccuracy-0.4.2 → traccuracy-0.5.0}/src/traccuracy/track_errors/_ctc.py +22 -15
- {traccuracy-0.4.2 → traccuracy-0.5.0}/src/traccuracy/track_errors/_divisions.py +13 -8
- {traccuracy-0.4.2 → traccuracy-0.5.0}/src/traccuracy/utils.py +11 -17
- {traccuracy-0.4.2 → traccuracy-0.5.0/src/traccuracy.egg-info}/PKG-INFO +11 -16
- {traccuracy-0.4.2 → traccuracy-0.5.0}/src/traccuracy.egg-info/SOURCES.txt +19 -1
- {traccuracy-0.4.2 → traccuracy-0.5.0}/src/traccuracy.egg-info/requires.txt +4 -3
- traccuracy-0.5.0/src/traccuracy.egg-info/scm_file_list.json +223 -0
- traccuracy-0.5.0/src/traccuracy.egg-info/scm_version.json +8 -0
- {traccuracy-0.4.2 → traccuracy-0.5.0}/tests/bench.py +84 -0
- {traccuracy-0.4.2 → traccuracy-0.5.0}/tests/examples/graphs.py +75 -7
- {traccuracy-0.4.2 → traccuracy-0.5.0}/tests/examples/larger_examples.py +1 -1
- {traccuracy-0.4.2 → traccuracy-0.5.0}/tests/loaders/test_ctc.py +58 -2
- {traccuracy-0.4.2 → traccuracy-0.5.0}/tests/loaders/test_geff.py +48 -2
- traccuracy-0.5.0/tests/loaders/test_napari.py +218 -0
- {traccuracy-0.4.2 → traccuracy-0.5.0}/tests/loaders/test_point.py +9 -0
- {traccuracy-0.4.2 → traccuracy-0.5.0}/tests/matchers/test_compute_overlap.py +1 -1
- {traccuracy-0.4.2 → traccuracy-0.5.0}/tests/matchers/test_ctc.py +34 -4
- {traccuracy-0.4.2 → traccuracy-0.5.0}/tests/matchers/test_iou.py +69 -4
- {traccuracy-0.4.2 → traccuracy-0.5.0}/tests/matchers/test_point.py +26 -1
- traccuracy-0.5.0/tests/metrics/test_base.py +371 -0
- {traccuracy-0.4.2 → traccuracy-0.5.0}/tests/metrics/test_basic.py +38 -0
- {traccuracy-0.4.2 → traccuracy-0.5.0}/tests/metrics/test_complete_tracks.py +50 -16
- traccuracy-0.5.0/tests/metrics/test_complete_tracks_by_length.py +160 -0
- traccuracy-0.5.0/tests/metrics/test_compute_complete_tracks_by_length.py +530 -0
- {traccuracy-0.4.2 → traccuracy-0.5.0}/tests/metrics/test_ctc_metrics.py +69 -2
- traccuracy-0.5.0/tests/metrics/test_ctc_oracle.py +214 -0
- {traccuracy-0.4.2 → traccuracy-0.5.0}/tests/metrics/test_divisions.py +61 -2
- traccuracy-0.5.0/tests/metrics/test_sparse_safe_keys.py +204 -0
- traccuracy-0.5.0/tests/metrics/test_swedj.py +923 -0
- {traccuracy-0.4.2 → traccuracy-0.5.0}/tests/metrics/test_track_overlap_metrics.py +15 -2
- {traccuracy-0.4.2 → traccuracy-0.5.0}/tests/test_run_metrics.py +33 -1
- {traccuracy-0.4.2 → traccuracy-0.5.0}/tests/test_tracking_graph.py +84 -11
- {traccuracy-0.4.2 → traccuracy-0.5.0}/tests/test_utils.py +69 -10
- {traccuracy-0.4.2 → traccuracy-0.5.0}/tests/track_errors/test_basic.py +12 -1
- {traccuracy-0.4.2 → traccuracy-0.5.0}/tests/track_errors/test_ctc_errors.py +24 -3
- {traccuracy-0.4.2 → traccuracy-0.5.0}/tests/track_errors/test_divisions.py +13 -0
- traccuracy-0.4.2/.gitattributes +0 -2
- traccuracy-0.4.2/docs/source/cli.md +0 -7
- traccuracy-0.4.2/docs/source/metrics/metrics.md +0 -29
- traccuracy-0.4.2/src/traccuracy/metrics/_base.py +0 -168
- traccuracy-0.4.2/tests/metrics/test_base.py +0 -127
- {traccuracy-0.4.2 → traccuracy-0.5.0}/.github/ISSUE_TEMPLATE/bugs.md +0 -0
- {traccuracy-0.4.2 → traccuracy-0.5.0}/.github/ISSUE_TEMPLATE/features.md +0 -0
- {traccuracy-0.4.2 → traccuracy-0.5.0}/.github/PULL_REQUEST_TEMPLATE.md +0 -0
- {traccuracy-0.4.2 → traccuracy-0.5.0}/.github/dependabot.yml +0 -0
- {traccuracy-0.4.2 → traccuracy-0.5.0}/.github/release.yml +0 -0
- {traccuracy-0.4.2 → traccuracy-0.5.0}/.github/workflows/benchmark-pr.py +0 -0
- {traccuracy-0.4.2 → traccuracy-0.5.0}/.readthedocs.yml +0 -0
- {traccuracy-0.4.2 → traccuracy-0.5.0}/LICENSE +0 -0
- {traccuracy-0.4.2 → traccuracy-0.5.0}/docs/Makefile +0 -0
- {traccuracy-0.4.2 → traccuracy-0.5.0}/docs/make.bat +0 -0
- {traccuracy-0.4.2 → traccuracy-0.5.0}/docs/source/_static/css/tablefix.css +0 -0
- {traccuracy-0.4.2 → traccuracy-0.5.0}/docs/source/examples/ctc.nblink +0 -0
- {traccuracy-0.4.2 → traccuracy-0.5.0}/docs/source/glossary.md +0 -0
- {traccuracy-0.4.2 → traccuracy-0.5.0}/docs/source/matchers/matchers.md +0 -0
- {traccuracy-0.4.2 → traccuracy-0.5.0}/docs/source/test_cases/divisions.md +0 -0
- {traccuracy-0.4.2 → traccuracy-0.5.0}/docs/source/test_cases/errors.md +0 -0
- {traccuracy-0.4.2 → traccuracy-0.5.0}/docs/source/test_cases/index.md +0 -0
- {traccuracy-0.4.2 → traccuracy-0.5.0}/docs/source/test_cases/larger_examples.md +0 -0
- {traccuracy-0.4.2 → traccuracy-0.5.0}/docs/source/test_cases/matchers.md +0 -0
- {traccuracy-0.4.2 → traccuracy-0.5.0}/docs/source/track_errors/basic.md +0 -0
- {traccuracy-0.4.2 → traccuracy-0.5.0}/docs/source/track_errors/ctc.md +0 -0
- {traccuracy-0.4.2 → traccuracy-0.5.0}/docs/source/track_errors/divisions.md +0 -0
- {traccuracy-0.4.2 → traccuracy-0.5.0}/examples/ctc.ipynb +0 -0
- {traccuracy-0.4.2 → traccuracy-0.5.0}/examples/sample-data/Fluo-N2DL-HeLa/01_RES/mask000.tif +0 -0
- {traccuracy-0.4.2 → traccuracy-0.5.0}/examples/sample-data/Fluo-N2DL-HeLa/01_RES/mask001.tif +0 -0
- {traccuracy-0.4.2 → traccuracy-0.5.0}/examples/sample-data/Fluo-N2DL-HeLa/01_RES/mask002.tif +0 -0
- {traccuracy-0.4.2 → traccuracy-0.5.0}/examples/sample-data/Fluo-N2DL-HeLa/01_RES/mask003.tif +0 -0
- {traccuracy-0.4.2 → traccuracy-0.5.0}/examples/sample-data/Fluo-N2DL-HeLa/01_RES/mask004.tif +0 -0
- {traccuracy-0.4.2 → traccuracy-0.5.0}/examples/sample-data/Fluo-N2DL-HeLa/01_RES/mask005.tif +0 -0
- {traccuracy-0.4.2 → traccuracy-0.5.0}/examples/sample-data/Fluo-N2DL-HeLa/01_RES/mask006.tif +0 -0
- {traccuracy-0.4.2 → traccuracy-0.5.0}/examples/sample-data/Fluo-N2DL-HeLa/01_RES/mask007.tif +0 -0
- {traccuracy-0.4.2 → traccuracy-0.5.0}/examples/sample-data/Fluo-N2DL-HeLa/01_RES/mask008.tif +0 -0
- {traccuracy-0.4.2 → traccuracy-0.5.0}/examples/sample-data/Fluo-N2DL-HeLa/01_RES/mask009.tif +0 -0
- {traccuracy-0.4.2 → traccuracy-0.5.0}/examples/sample-data/Fluo-N2DL-HeLa/01_RES/mask010.tif +0 -0
- {traccuracy-0.4.2 → traccuracy-0.5.0}/examples/sample-data/Fluo-N2DL-HeLa/01_RES/mask011.tif +0 -0
- {traccuracy-0.4.2 → traccuracy-0.5.0}/examples/sample-data/Fluo-N2DL-HeLa/01_RES/mask012.tif +0 -0
- {traccuracy-0.4.2 → traccuracy-0.5.0}/examples/sample-data/Fluo-N2DL-HeLa/01_RES/mask013.tif +0 -0
- {traccuracy-0.4.2 → traccuracy-0.5.0}/examples/sample-data/Fluo-N2DL-HeLa/01_RES/mask014.tif +0 -0
- {traccuracy-0.4.2 → traccuracy-0.5.0}/examples/sample-data/Fluo-N2DL-HeLa/01_RES/mask015.tif +0 -0
- {traccuracy-0.4.2 → traccuracy-0.5.0}/examples/sample-data/Fluo-N2DL-HeLa/01_RES/mask016.tif +0 -0
- {traccuracy-0.4.2 → traccuracy-0.5.0}/examples/sample-data/Fluo-N2DL-HeLa/01_RES/mask017.tif +0 -0
- {traccuracy-0.4.2 → traccuracy-0.5.0}/examples/sample-data/Fluo-N2DL-HeLa/01_RES/mask018.tif +0 -0
- {traccuracy-0.4.2 → traccuracy-0.5.0}/examples/sample-data/Fluo-N2DL-HeLa/01_RES/mask019.tif +0 -0
- {traccuracy-0.4.2 → traccuracy-0.5.0}/examples/sample-data/Fluo-N2DL-HeLa/01_RES/mask020.tif +0 -0
- {traccuracy-0.4.2 → traccuracy-0.5.0}/examples/sample-data/Fluo-N2DL-HeLa/01_RES/mask021.tif +0 -0
- {traccuracy-0.4.2 → traccuracy-0.5.0}/examples/sample-data/Fluo-N2DL-HeLa/01_RES/mask022.tif +0 -0
- {traccuracy-0.4.2 → traccuracy-0.5.0}/examples/sample-data/Fluo-N2DL-HeLa/01_RES/mask023.tif +0 -0
- {traccuracy-0.4.2 → traccuracy-0.5.0}/examples/sample-data/Fluo-N2DL-HeLa/01_RES/mask024.tif +0 -0
- {traccuracy-0.4.2 → traccuracy-0.5.0}/examples/sample-data/Fluo-N2DL-HeLa/01_RES/mask025.tif +0 -0
- {traccuracy-0.4.2 → traccuracy-0.5.0}/examples/sample-data/Fluo-N2DL-HeLa/01_RES/mask026.tif +0 -0
- {traccuracy-0.4.2 → traccuracy-0.5.0}/examples/sample-data/Fluo-N2DL-HeLa/01_RES/mask027.tif +0 -0
- {traccuracy-0.4.2 → traccuracy-0.5.0}/examples/sample-data/Fluo-N2DL-HeLa/01_RES/mask028.tif +0 -0
- {traccuracy-0.4.2 → traccuracy-0.5.0}/examples/sample-data/Fluo-N2DL-HeLa/01_RES/mask029.tif +0 -0
- {traccuracy-0.4.2 → traccuracy-0.5.0}/examples/sample-data/Fluo-N2DL-HeLa/01_RES/mask030.tif +0 -0
- {traccuracy-0.4.2 → traccuracy-0.5.0}/examples/sample-data/Fluo-N2DL-HeLa/01_RES/mask031.tif +0 -0
- {traccuracy-0.4.2 → traccuracy-0.5.0}/examples/sample-data/Fluo-N2DL-HeLa/01_RES/mask032.tif +0 -0
- {traccuracy-0.4.2 → traccuracy-0.5.0}/examples/sample-data/Fluo-N2DL-HeLa/01_RES/mask033.tif +0 -0
- {traccuracy-0.4.2 → traccuracy-0.5.0}/examples/sample-data/Fluo-N2DL-HeLa/01_RES/mask034.tif +0 -0
- {traccuracy-0.4.2 → traccuracy-0.5.0}/examples/sample-data/Fluo-N2DL-HeLa/01_RES/mask035.tif +0 -0
- {traccuracy-0.4.2 → traccuracy-0.5.0}/examples/sample-data/Fluo-N2DL-HeLa/01_RES/mask036.tif +0 -0
- {traccuracy-0.4.2 → traccuracy-0.5.0}/examples/sample-data/Fluo-N2DL-HeLa/01_RES/mask037.tif +0 -0
- {traccuracy-0.4.2 → traccuracy-0.5.0}/examples/sample-data/Fluo-N2DL-HeLa/01_RES/mask038.tif +0 -0
- {traccuracy-0.4.2 → traccuracy-0.5.0}/examples/sample-data/Fluo-N2DL-HeLa/01_RES/mask039.tif +0 -0
- {traccuracy-0.4.2 → traccuracy-0.5.0}/examples/sample-data/Fluo-N2DL-HeLa/01_RES/mask040.tif +0 -0
- {traccuracy-0.4.2 → traccuracy-0.5.0}/examples/sample-data/Fluo-N2DL-HeLa/01_RES/mask041.tif +0 -0
- {traccuracy-0.4.2 → traccuracy-0.5.0}/examples/sample-data/Fluo-N2DL-HeLa/01_RES/mask042.tif +0 -0
- {traccuracy-0.4.2 → traccuracy-0.5.0}/examples/sample-data/Fluo-N2DL-HeLa/01_RES/mask043.tif +0 -0
- {traccuracy-0.4.2 → traccuracy-0.5.0}/examples/sample-data/Fluo-N2DL-HeLa/01_RES/mask044.tif +0 -0
- {traccuracy-0.4.2 → traccuracy-0.5.0}/examples/sample-data/Fluo-N2DL-HeLa/01_RES/mask045.tif +0 -0
- {traccuracy-0.4.2 → traccuracy-0.5.0}/examples/sample-data/Fluo-N2DL-HeLa/01_RES/mask046.tif +0 -0
- {traccuracy-0.4.2 → traccuracy-0.5.0}/examples/sample-data/Fluo-N2DL-HeLa/01_RES/mask047.tif +0 -0
- {traccuracy-0.4.2 → traccuracy-0.5.0}/examples/sample-data/Fluo-N2DL-HeLa/01_RES/mask048.tif +0 -0
- {traccuracy-0.4.2 → traccuracy-0.5.0}/examples/sample-data/Fluo-N2DL-HeLa/01_RES/mask049.tif +0 -0
- {traccuracy-0.4.2 → traccuracy-0.5.0}/examples/sample-data/Fluo-N2DL-HeLa/01_RES/mask050.tif +0 -0
- {traccuracy-0.4.2 → traccuracy-0.5.0}/examples/sample-data/Fluo-N2DL-HeLa/01_RES/mask051.tif +0 -0
- {traccuracy-0.4.2 → traccuracy-0.5.0}/examples/sample-data/Fluo-N2DL-HeLa/01_RES/mask052.tif +0 -0
- {traccuracy-0.4.2 → traccuracy-0.5.0}/examples/sample-data/Fluo-N2DL-HeLa/01_RES/mask053.tif +0 -0
- {traccuracy-0.4.2 → traccuracy-0.5.0}/examples/sample-data/Fluo-N2DL-HeLa/01_RES/mask054.tif +0 -0
- {traccuracy-0.4.2 → traccuracy-0.5.0}/examples/sample-data/Fluo-N2DL-HeLa/01_RES/mask055.tif +0 -0
- {traccuracy-0.4.2 → traccuracy-0.5.0}/examples/sample-data/Fluo-N2DL-HeLa/01_RES/mask056.tif +0 -0
- {traccuracy-0.4.2 → traccuracy-0.5.0}/examples/sample-data/Fluo-N2DL-HeLa/01_RES/mask057.tif +0 -0
- {traccuracy-0.4.2 → traccuracy-0.5.0}/examples/sample-data/Fluo-N2DL-HeLa/01_RES/mask058.tif +0 -0
- {traccuracy-0.4.2 → traccuracy-0.5.0}/examples/sample-data/Fluo-N2DL-HeLa/01_RES/mask059.tif +0 -0
- {traccuracy-0.4.2 → traccuracy-0.5.0}/examples/sample-data/Fluo-N2DL-HeLa/01_RES/mask060.tif +0 -0
- {traccuracy-0.4.2 → traccuracy-0.5.0}/examples/sample-data/Fluo-N2DL-HeLa/01_RES/mask061.tif +0 -0
- {traccuracy-0.4.2 → traccuracy-0.5.0}/examples/sample-data/Fluo-N2DL-HeLa/01_RES/mask062.tif +0 -0
- {traccuracy-0.4.2 → traccuracy-0.5.0}/examples/sample-data/Fluo-N2DL-HeLa/01_RES/mask063.tif +0 -0
- {traccuracy-0.4.2 → traccuracy-0.5.0}/examples/sample-data/Fluo-N2DL-HeLa/01_RES/mask064.tif +0 -0
- {traccuracy-0.4.2 → traccuracy-0.5.0}/examples/sample-data/Fluo-N2DL-HeLa/01_RES/mask065.tif +0 -0
- {traccuracy-0.4.2 → traccuracy-0.5.0}/examples/sample-data/Fluo-N2DL-HeLa/01_RES/mask066.tif +0 -0
- {traccuracy-0.4.2 → traccuracy-0.5.0}/examples/sample-data/Fluo-N2DL-HeLa/01_RES/mask067.tif +0 -0
- {traccuracy-0.4.2 → traccuracy-0.5.0}/examples/sample-data/Fluo-N2DL-HeLa/01_RES/mask068.tif +0 -0
- {traccuracy-0.4.2 → traccuracy-0.5.0}/examples/sample-data/Fluo-N2DL-HeLa/01_RES/mask069.tif +0 -0
- {traccuracy-0.4.2 → traccuracy-0.5.0}/examples/sample-data/Fluo-N2DL-HeLa/01_RES/mask070.tif +0 -0
- {traccuracy-0.4.2 → traccuracy-0.5.0}/examples/sample-data/Fluo-N2DL-HeLa/01_RES/mask071.tif +0 -0
- {traccuracy-0.4.2 → traccuracy-0.5.0}/examples/sample-data/Fluo-N2DL-HeLa/01_RES/mask072.tif +0 -0
- {traccuracy-0.4.2 → traccuracy-0.5.0}/examples/sample-data/Fluo-N2DL-HeLa/01_RES/mask073.tif +0 -0
- {traccuracy-0.4.2 → traccuracy-0.5.0}/examples/sample-data/Fluo-N2DL-HeLa/01_RES/mask074.tif +0 -0
- {traccuracy-0.4.2 → traccuracy-0.5.0}/examples/sample-data/Fluo-N2DL-HeLa/01_RES/mask075.tif +0 -0
- {traccuracy-0.4.2 → traccuracy-0.5.0}/examples/sample-data/Fluo-N2DL-HeLa/01_RES/mask076.tif +0 -0
- {traccuracy-0.4.2 → traccuracy-0.5.0}/examples/sample-data/Fluo-N2DL-HeLa/01_RES/mask077.tif +0 -0
- {traccuracy-0.4.2 → traccuracy-0.5.0}/examples/sample-data/Fluo-N2DL-HeLa/01_RES/mask078.tif +0 -0
- {traccuracy-0.4.2 → traccuracy-0.5.0}/examples/sample-data/Fluo-N2DL-HeLa/01_RES/mask079.tif +0 -0
- {traccuracy-0.4.2 → traccuracy-0.5.0}/examples/sample-data/Fluo-N2DL-HeLa/01_RES/mask080.tif +0 -0
- {traccuracy-0.4.2 → traccuracy-0.5.0}/examples/sample-data/Fluo-N2DL-HeLa/01_RES/mask081.tif +0 -0
- {traccuracy-0.4.2 → traccuracy-0.5.0}/examples/sample-data/Fluo-N2DL-HeLa/01_RES/mask082.tif +0 -0
- {traccuracy-0.4.2 → traccuracy-0.5.0}/examples/sample-data/Fluo-N2DL-HeLa/01_RES/mask083.tif +0 -0
- {traccuracy-0.4.2 → traccuracy-0.5.0}/examples/sample-data/Fluo-N2DL-HeLa/01_RES/mask084.tif +0 -0
- {traccuracy-0.4.2 → traccuracy-0.5.0}/examples/sample-data/Fluo-N2DL-HeLa/01_RES/mask085.tif +0 -0
- {traccuracy-0.4.2 → traccuracy-0.5.0}/examples/sample-data/Fluo-N2DL-HeLa/01_RES/mask086.tif +0 -0
- {traccuracy-0.4.2 → traccuracy-0.5.0}/examples/sample-data/Fluo-N2DL-HeLa/01_RES/mask087.tif +0 -0
- {traccuracy-0.4.2 → traccuracy-0.5.0}/examples/sample-data/Fluo-N2DL-HeLa/01_RES/mask088.tif +0 -0
- {traccuracy-0.4.2 → traccuracy-0.5.0}/examples/sample-data/Fluo-N2DL-HeLa/01_RES/mask089.tif +0 -0
- {traccuracy-0.4.2 → traccuracy-0.5.0}/examples/sample-data/Fluo-N2DL-HeLa/01_RES/mask090.tif +0 -0
- {traccuracy-0.4.2 → traccuracy-0.5.0}/examples/sample-data/Fluo-N2DL-HeLa/01_RES/mask091.tif +0 -0
- {traccuracy-0.4.2 → traccuracy-0.5.0}/examples/sample-data/Fluo-N2DL-HeLa/01_RES/res_track.txt +0 -0
- {traccuracy-0.4.2 → traccuracy-0.5.0}/setup.cfg +0 -0
- {traccuracy-0.4.2 → traccuracy-0.5.0}/src/traccuracy/__init__.py +0 -0
- {traccuracy-0.4.2 → traccuracy-0.5.0}/src/traccuracy/_run_metrics.py +0 -0
- {traccuracy-0.4.2 → traccuracy-0.5.0}/src/traccuracy/matchers/__init__.py +0 -0
- {traccuracy-0.4.2 → traccuracy-0.5.0}/src/traccuracy/matchers/_matched.py +0 -0
- {traccuracy-0.4.2 → traccuracy-0.5.0}/src/traccuracy/matchers/_point_seg.py +0 -0
- {traccuracy-0.4.2 → traccuracy-0.5.0}/src/traccuracy/track_errors/__init__.py +0 -0
- {traccuracy-0.4.2 → traccuracy-0.5.0}/src/traccuracy.egg-info/dependency_links.txt +0 -0
- {traccuracy-0.4.2 → traccuracy-0.5.0}/src/traccuracy.egg-info/entry_points.txt +0 -0
- {traccuracy-0.4.2 → traccuracy-0.5.0}/src/traccuracy.egg-info/top_level.txt +0 -0
- {traccuracy-0.4.2 → traccuracy-0.5.0}/tests/__init__.py +0 -0
- {traccuracy-0.4.2 → traccuracy-0.5.0}/tests/examples/segs.py +0 -0
- {traccuracy-0.4.2 → traccuracy-0.5.0}/tests/loaders/__init__.py +0 -0
- {traccuracy-0.4.2 → traccuracy-0.5.0}/tests/matchers/__init__.py +0 -0
- {traccuracy-0.4.2 → traccuracy-0.5.0}/tests/matchers/test_base.py +0 -0
- {traccuracy-0.4.2 → traccuracy-0.5.0}/tests/matchers/test_matched.py +0 -0
- {traccuracy-0.4.2 → traccuracy-0.5.0}/tests/matchers/test_point_seg.py +0 -0
- {traccuracy-0.4.2 → traccuracy-0.5.0}/tests/metrics/__init__.py +0 -0
- {traccuracy-0.4.2 → traccuracy-0.5.0}/tests/metrics/test_cca.py +0 -0
- {traccuracy-0.4.2 → traccuracy-0.5.0}/tests/metrics/test_chota.py +0 -0
- {traccuracy-0.4.2 → traccuracy-0.5.0}/tests/metrics/test_weighted_error_sums.py +0 -0
- {traccuracy-0.4.2 → traccuracy-0.5.0}/tests/test_cli.py +0 -0
- {traccuracy-0.4.2 → traccuracy-0.5.0}/tests/track_errors/__init__.py +0 -0
|
@@ -13,6 +13,8 @@ Put an x in the boxes that apply. You can also fill these out after creating the
|
|
|
13
13
|
- [ ] I have added benchmarking functions for my change `tests/bench.py`.
|
|
14
14
|
- [ ] I have added a page to the documentation with a complete description of my matcher/metric including any references.
|
|
15
15
|
- [ ] I have written docstrings and checked that they render correctly in the Read The Docs build (created after the PR is opened).
|
|
16
|
+
- [ ] For a new metric, I have specified `sparse_safe_keys`, `agnostic_keys` and `_sparse_inflatable_substrings` in the Metric definition.
|
|
17
|
+
- [ ] For a new metric, I have added a `DECLARED_KEY_CASES` entry in tests/metrics/test_sparse_safe_keys.py, or listed it in `KEYLESS_METRICS` there if it has no sparse-safe or agnostic keys
|
|
16
18
|
|
|
17
19
|
# Further Comments
|
|
18
20
|
If this is a relatively large or complex change, kick off the discussion by explaining why you chose the solution you did and what alternatives you considered, etc...
|
|
@@ -17,10 +17,17 @@ jobs:
|
|
|
17
17
|
name: Report benchmarks on gh-pages
|
|
18
18
|
runs-on: ubuntu-latest
|
|
19
19
|
steps:
|
|
20
|
-
- uses: actions/checkout@
|
|
20
|
+
- uses: actions/checkout@v7
|
|
21
|
+
|
|
22
|
+
- name: Set up uv
|
|
23
|
+
uses: astral-sh/setup-uv@v7
|
|
24
|
+
with:
|
|
25
|
+
python-version: 3.13
|
|
26
|
+
enable-cache: true
|
|
27
|
+
cache-dependency-glob: pyproject.toml
|
|
21
28
|
|
|
22
29
|
- name: Retrieve cached data
|
|
23
|
-
uses: actions/cache/restore@
|
|
30
|
+
uses: actions/cache/restore@v6
|
|
24
31
|
id: cache_data
|
|
25
32
|
with:
|
|
26
33
|
path: downloads
|
|
@@ -29,31 +36,23 @@ jobs:
|
|
|
29
36
|
- name: Download Samples
|
|
30
37
|
if: steps.cache_data.outputs.cache-hit != 'true'
|
|
31
38
|
run: |
|
|
32
|
-
|
|
33
|
-
python scripts/download_test_data.py
|
|
39
|
+
uv run --no-project --with requests python scripts/download_test_data.py
|
|
34
40
|
|
|
35
41
|
- name: Cache sample data
|
|
36
|
-
uses: actions/cache/save@
|
|
42
|
+
uses: actions/cache/save@v6
|
|
37
43
|
if: steps.cache_data.outputs.cache-hit != 'true'
|
|
38
44
|
with:
|
|
39
45
|
path: downloads
|
|
40
46
|
key: ${{ hashFiles('scripts/download_test_data.py') }}
|
|
41
47
|
|
|
42
|
-
- name: Set up Python
|
|
43
|
-
uses: actions/setup-python@v6
|
|
44
|
-
with:
|
|
45
|
-
python-version: 3.13
|
|
46
|
-
cache-dependency-path: "pyproject.toml"
|
|
47
|
-
cache: "pip"
|
|
48
48
|
|
|
49
49
|
- name: Install dependencies
|
|
50
50
|
run: |
|
|
51
|
-
|
|
52
|
-
python -m pip install -e .[test]
|
|
51
|
+
uv sync --extra test
|
|
53
52
|
|
|
54
53
|
- name: Run benchmark
|
|
55
54
|
run: |
|
|
56
|
-
pytest tests/bench.py --benchmark-json output.json
|
|
55
|
+
uv run pytest tests/bench.py --benchmark-json output.json
|
|
57
56
|
|
|
58
57
|
- name: Store benchmark results
|
|
59
58
|
uses: benchmark-action/github-action-benchmark@v1
|
|
@@ -17,24 +17,39 @@ jobs:
|
|
|
17
17
|
# check-manifest:
|
|
18
18
|
# runs-on: ubuntu-latest
|
|
19
19
|
# steps:
|
|
20
|
-
# - uses: actions/checkout@
|
|
20
|
+
# - uses: actions/checkout@v7
|
|
21
21
|
# - run: pipx run check-manifest
|
|
22
22
|
|
|
23
23
|
test:
|
|
24
24
|
name: ${{ matrix.platform }} (${{ matrix.python-version }})
|
|
25
25
|
runs-on: ${{ matrix.platform }}
|
|
26
|
+
env:
|
|
27
|
+
# uv run should not re-sync; deps are installed in the Install step
|
|
28
|
+
UV_NO_SYNC: "1"
|
|
26
29
|
strategy:
|
|
27
30
|
fail-fast: false
|
|
28
31
|
matrix:
|
|
29
32
|
python-version: ["3.10", "3.11", "3.12", "3.13"]
|
|
30
33
|
platform: [ubuntu-latest, macos-latest, windows-latest]
|
|
34
|
+
include:
|
|
35
|
+
# oracle tests check against external binaries, one job is enough
|
|
36
|
+
- python-version: "3.10"
|
|
37
|
+
platform: ubuntu-latest
|
|
38
|
+
ctc_oracle: true
|
|
31
39
|
|
|
32
40
|
steps:
|
|
33
|
-
- uses: actions/checkout@
|
|
41
|
+
- uses: actions/checkout@v7
|
|
42
|
+
|
|
43
|
+
- name: Set up uv
|
|
44
|
+
uses: astral-sh/setup-uv@v7
|
|
45
|
+
with:
|
|
46
|
+
python-version: ${{ matrix.python-version }}
|
|
47
|
+
enable-cache: true
|
|
48
|
+
cache-dependency-glob: pyproject.toml
|
|
34
49
|
|
|
35
50
|
# downloading data, required for CHOTA metric test
|
|
36
51
|
- name: Retrieve cached data
|
|
37
|
-
uses: actions/cache/restore@
|
|
52
|
+
uses: actions/cache/restore@v6
|
|
38
53
|
id: cache_data
|
|
39
54
|
with:
|
|
40
55
|
path: downloads
|
|
@@ -43,45 +58,60 @@ jobs:
|
|
|
43
58
|
- name: Download Samples
|
|
44
59
|
if: steps.cache_data.outputs.cache-hit != 'true'
|
|
45
60
|
run: |
|
|
46
|
-
|
|
47
|
-
python scripts/download_test_data.py
|
|
61
|
+
uv run --no-project --with requests python scripts/download_test_data.py
|
|
48
62
|
|
|
49
63
|
- name: Cache sample data
|
|
50
|
-
uses: actions/cache/save@
|
|
64
|
+
uses: actions/cache/save@v6
|
|
51
65
|
if: steps.cache_data.outputs.cache-hit != 'true'
|
|
52
66
|
with:
|
|
53
67
|
path: downloads
|
|
54
68
|
key: ${{ hashFiles('scripts/download_test_data.py') }}
|
|
55
69
|
|
|
56
|
-
- name: Set up Python ${{ matrix.python-version }}
|
|
57
|
-
uses: actions/setup-python@v6
|
|
58
|
-
with:
|
|
59
|
-
python-version: ${{ matrix.python-version }}
|
|
60
|
-
cache-dependency-path: "pyproject.toml"
|
|
61
|
-
cache: "pip"
|
|
62
|
-
|
|
63
70
|
- name: Install dependencies
|
|
64
|
-
run:
|
|
65
|
-
python -m pip install -U pip
|
|
66
|
-
python -m pip install -e .[test]
|
|
71
|
+
run: uv sync --extra test
|
|
67
72
|
|
|
68
73
|
- name: Test
|
|
69
|
-
run: pytest --color=yes --cov --cov-report=xml --cov-report=term-missing
|
|
74
|
+
run: uv run pytest --color=yes --cov --cov-report=xml --cov-report=term-missing
|
|
75
|
+
env:
|
|
76
|
+
SKIP_CTC_ORACLE: ${{ !matrix.ctc_oracle }}
|
|
70
77
|
|
|
71
78
|
- name: Coverage
|
|
72
|
-
uses: codecov/codecov-action@
|
|
79
|
+
uses: codecov/codecov-action@v7
|
|
73
80
|
with:
|
|
74
81
|
token: ${{ secrets.CODECOV_TOKEN }}
|
|
75
82
|
|
|
83
|
+
typecheck:
|
|
84
|
+
name: Type check
|
|
85
|
+
runs-on: ubuntu-latest
|
|
86
|
+
steps:
|
|
87
|
+
- uses: actions/checkout@v7
|
|
88
|
+
|
|
89
|
+
- name: Set up uv
|
|
90
|
+
uses: astral-sh/setup-uv@v7
|
|
91
|
+
with:
|
|
92
|
+
python-version: "3.13"
|
|
93
|
+
enable-cache: true
|
|
94
|
+
cache-dependency-glob: pyproject.toml
|
|
95
|
+
|
|
96
|
+
- name: Run mypy
|
|
97
|
+
run: uv run --extra typing mypy src --ignore-missing-imports
|
|
98
|
+
|
|
76
99
|
examples:
|
|
77
100
|
name: Examples
|
|
78
101
|
runs-on: ubuntu-latest
|
|
79
102
|
|
|
80
103
|
steps:
|
|
81
|
-
- uses: actions/checkout@
|
|
104
|
+
- uses: actions/checkout@v7
|
|
105
|
+
|
|
106
|
+
- name: Set up uv
|
|
107
|
+
uses: astral-sh/setup-uv@v7
|
|
108
|
+
with:
|
|
109
|
+
python-version: "3.13"
|
|
110
|
+
enable-cache: true
|
|
111
|
+
cache-dependency-glob: pyproject.toml
|
|
82
112
|
|
|
83
113
|
- name: Retrieve cached data
|
|
84
|
-
uses: actions/cache/restore@
|
|
114
|
+
uses: actions/cache/restore@v6
|
|
85
115
|
id: cache_data
|
|
86
116
|
with:
|
|
87
117
|
path: downloads
|
|
@@ -90,45 +120,44 @@ jobs:
|
|
|
90
120
|
- name: Download Samples
|
|
91
121
|
if: steps.cache_data.outputs.cache-hit != 'true'
|
|
92
122
|
run: |
|
|
93
|
-
|
|
94
|
-
python scripts/download_test_data.py
|
|
123
|
+
uv run --no-project --with requests python scripts/download_test_data.py
|
|
95
124
|
|
|
96
125
|
- name: Cache sample data
|
|
97
|
-
uses: actions/cache/save@
|
|
126
|
+
uses: actions/cache/save@v6
|
|
98
127
|
if: steps.cache_data.outputs.cache-hit != 'true'
|
|
99
128
|
with:
|
|
100
129
|
path: downloads
|
|
101
130
|
key: ${{ hashFiles('scripts/download_test_data.py') }}
|
|
102
131
|
|
|
103
|
-
- name: Set up Python 3.13
|
|
104
|
-
uses: actions/setup-python@v6
|
|
105
|
-
with:
|
|
106
|
-
python-version: "3.13"
|
|
107
|
-
cache-dependency-path: "pyproject.toml"
|
|
108
|
-
cache: "pip"
|
|
109
|
-
|
|
110
132
|
- name: Install dependencies
|
|
111
|
-
run:
|
|
112
|
-
python -m pip install -U pip
|
|
113
|
-
python -m pip install -e . nbclient ipykernel
|
|
133
|
+
run: uv sync --no-dev
|
|
114
134
|
|
|
115
135
|
- name: Run notebooks
|
|
116
136
|
# This will exit after the first error and will not report errors in subsequent nbs
|
|
117
|
-
run: jupyter execute examples/*.ipynb
|
|
137
|
+
run: uv run --with nbclient --with ipykernel jupyter execute examples/*.ipynb
|
|
118
138
|
|
|
119
139
|
|
|
120
140
|
benchmark:
|
|
121
141
|
name: Benchmark
|
|
122
142
|
runs-on: ubuntu-latest
|
|
123
143
|
if: github.event_name == 'pull_request'
|
|
124
|
-
|
|
144
|
+
env:
|
|
145
|
+
# don't re-resolve/sync when switching commits
|
|
146
|
+
UV_NO_SYNC: "1"
|
|
125
147
|
steps:
|
|
126
|
-
- uses: actions/checkout@
|
|
148
|
+
- uses: actions/checkout@v7
|
|
127
149
|
with:
|
|
128
150
|
fetch-depth: 50 # this is to make sure we obtain the target base commit
|
|
129
151
|
|
|
152
|
+
- name: Set up uv
|
|
153
|
+
uses: astral-sh/setup-uv@v7
|
|
154
|
+
with:
|
|
155
|
+
python-version: 3.13
|
|
156
|
+
enable-cache: true
|
|
157
|
+
cache-dependency-glob: pyproject.toml
|
|
158
|
+
|
|
130
159
|
- name: Retrieve cached data
|
|
131
|
-
uses: actions/cache/restore@
|
|
160
|
+
uses: actions/cache/restore@v6
|
|
132
161
|
id: cache_data
|
|
133
162
|
with:
|
|
134
163
|
path: downloads
|
|
@@ -137,31 +166,20 @@ jobs:
|
|
|
137
166
|
- name: Download Samples
|
|
138
167
|
if: steps.cache_data.outputs.cache-hit != 'true'
|
|
139
168
|
run: |
|
|
140
|
-
|
|
141
|
-
python scripts/download_test_data.py
|
|
169
|
+
uv run --no-project --with requests python scripts/download_test_data.py
|
|
142
170
|
|
|
143
171
|
- name: Cache sample data
|
|
144
|
-
uses: actions/cache/save@
|
|
172
|
+
uses: actions/cache/save@v6
|
|
145
173
|
if: steps.cache_data.outputs.cache-hit != 'true'
|
|
146
174
|
with:
|
|
147
175
|
path: downloads
|
|
148
176
|
key: ${{ hashFiles('scripts/download_test_data.py') }}
|
|
149
177
|
|
|
150
|
-
- name: Set up Python
|
|
151
|
-
uses: actions/setup-python@v6
|
|
152
|
-
with:
|
|
153
|
-
python-version: 3.13
|
|
154
|
-
cache-dependency-path: "pyproject.toml"
|
|
155
|
-
cache: "pip"
|
|
156
|
-
|
|
157
178
|
- name: Install dependencies
|
|
158
|
-
run:
|
|
159
|
-
python -m pip install -U pip
|
|
160
|
-
python -m pip install -e .[test]
|
|
161
|
-
python -m pip install tabulate
|
|
179
|
+
run: uv sync --extra test
|
|
162
180
|
|
|
163
181
|
- name: Retrieve cached baseline if available
|
|
164
|
-
uses: actions/cache/restore@
|
|
182
|
+
uses: actions/cache/restore@v6
|
|
165
183
|
id: cache_baseline
|
|
166
184
|
with:
|
|
167
185
|
path: baseline.json
|
|
@@ -171,10 +189,10 @@ jobs:
|
|
|
171
189
|
if: steps.cache_baseline.outputs.cache-hit != 'true'
|
|
172
190
|
run: |
|
|
173
191
|
git checkout ${{ github.event.pull_request.base.sha }}
|
|
174
|
-
pytest tests/bench.py -v --benchmark-json baseline.json
|
|
192
|
+
uv run pytest tests/bench.py -v --benchmark-json baseline.json
|
|
175
193
|
|
|
176
194
|
- name: Cache baseline results
|
|
177
|
-
uses: actions/cache/save@
|
|
195
|
+
uses: actions/cache/save@v6
|
|
178
196
|
if: steps.cache_baseline.outputs.cache-hit != 'true'
|
|
179
197
|
with:
|
|
180
198
|
path: baseline.json
|
|
@@ -183,14 +201,14 @@ jobs:
|
|
|
183
201
|
- name: Run benchmark on PR head commit
|
|
184
202
|
run: |
|
|
185
203
|
git checkout ${{ github.event.pull_request.head.sha }}
|
|
186
|
-
pytest tests/bench.py -v --benchmark-json pr.json
|
|
204
|
+
uv run pytest tests/bench.py -v --benchmark-json pr.json
|
|
187
205
|
|
|
188
206
|
- name: Generate report
|
|
189
|
-
run: python .github/workflows/benchmark-pr.py baseline.json pr.json report.md
|
|
207
|
+
run: uv run python .github/workflows/benchmark-pr.py baseline.json pr.json report.md
|
|
190
208
|
|
|
191
209
|
- name: Comment on commit with report for non-forks
|
|
192
210
|
uses: peter-evans/commit-comment@v3
|
|
193
|
-
if: github.event.pull_request.head.repo.fork == false
|
|
211
|
+
if: github.event.pull_request.head.repo.fork == false && github.actor != 'dependabot[bot]'
|
|
194
212
|
with:
|
|
195
213
|
body-path: report.md
|
|
196
214
|
|
|
@@ -198,21 +216,23 @@ jobs:
|
|
|
198
216
|
name: Test case coverage
|
|
199
217
|
runs-on: ubuntu-latest
|
|
200
218
|
if: github.event_name == 'pull_request'
|
|
219
|
+
env:
|
|
220
|
+
# uv run should not re-sync; deps are installed in the Install step
|
|
221
|
+
UV_NO_SYNC: "1"
|
|
201
222
|
|
|
202
223
|
steps:
|
|
203
|
-
- uses: actions/checkout@
|
|
224
|
+
- uses: actions/checkout@v7
|
|
204
225
|
|
|
205
|
-
- name: Set up
|
|
206
|
-
uses:
|
|
226
|
+
- name: Set up uv
|
|
227
|
+
uses: astral-sh/setup-uv@v7
|
|
207
228
|
with:
|
|
208
229
|
python-version: "3.13"
|
|
209
|
-
cache
|
|
210
|
-
cache:
|
|
230
|
+
enable-cache: true
|
|
231
|
+
cache-dependency-glob: pyproject.toml
|
|
232
|
+
|
|
211
233
|
|
|
212
234
|
- name: Install dependencies
|
|
213
|
-
run:
|
|
214
|
-
python -m pip install -U pip
|
|
215
|
-
python -m pip install -e .[covreport]
|
|
235
|
+
run: uv sync --extra covreport
|
|
216
236
|
|
|
217
237
|
- name: Store target commit hash
|
|
218
238
|
id: hash
|
|
@@ -220,9 +240,10 @@ jobs:
|
|
|
220
240
|
|
|
221
241
|
- name: Run coverage report
|
|
222
242
|
run: |
|
|
223
|
-
python scripts/test_case_report.py ${{ github.event.pull_request.head.sha }}
|
|
243
|
+
uv run python scripts/test_case_report.py ${{ github.event.pull_request.head.sha }}
|
|
224
244
|
|
|
225
245
|
- name: Add, stash, switch branch
|
|
246
|
+
if: github.actor != 'dependabot[bot]'
|
|
226
247
|
run: |
|
|
227
248
|
git add ${{ github.event.pull_request.head.sha }}.png
|
|
228
249
|
git stash
|
|
@@ -231,11 +252,13 @@ jobs:
|
|
|
231
252
|
git stash pop
|
|
232
253
|
|
|
233
254
|
- name: Commit to branch
|
|
234
|
-
|
|
255
|
+
if: github.actor != 'dependabot[bot]'
|
|
256
|
+
uses: EndBug/add-and-commit@v11
|
|
235
257
|
with:
|
|
236
258
|
add: "*.png"
|
|
237
259
|
|
|
238
260
|
- name: Comment with image link
|
|
261
|
+
if: github.actor != 'dependabot[bot]'
|
|
239
262
|
uses: peter-evans/commit-comment@v3
|
|
240
263
|
with:
|
|
241
264
|
body: |
|
|
@@ -249,27 +272,24 @@ jobs:
|
|
|
249
272
|
runs-on: ubuntu-latest
|
|
250
273
|
|
|
251
274
|
steps:
|
|
252
|
-
- uses: actions/checkout@
|
|
275
|
+
- uses: actions/checkout@v7
|
|
253
276
|
|
|
254
|
-
- name: Set up
|
|
255
|
-
uses:
|
|
256
|
-
with:
|
|
257
|
-
python-version: "3.x"
|
|
277
|
+
- name: Set up uv
|
|
278
|
+
uses: astral-sh/setup-uv@v7
|
|
258
279
|
|
|
259
|
-
- name:
|
|
280
|
+
- name: Build
|
|
260
281
|
run: |
|
|
261
282
|
git tag
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
twine check dist/*
|
|
283
|
+
uv build
|
|
284
|
+
uvx twine check dist/*
|
|
265
285
|
ls -lh dist
|
|
266
286
|
|
|
267
287
|
- name: Build and publish
|
|
268
|
-
run: twine upload dist/*
|
|
288
|
+
run: uvx twine upload dist/*
|
|
269
289
|
env:
|
|
270
290
|
TWINE_USERNAME: __token__
|
|
271
291
|
TWINE_PASSWORD: ${{ secrets.TWINE_API_KEY }}
|
|
272
292
|
|
|
273
|
-
- uses: softprops/action-gh-release@
|
|
293
|
+
- uses: softprops/action-gh-release@v3
|
|
274
294
|
with:
|
|
275
295
|
generate_release_notes: true
|
|
@@ -1,28 +1,31 @@
|
|
|
1
1
|
ci:
|
|
2
|
+
# mypy's environment (geff etc.) exceeds pre-commit.ci's build timeout;
|
|
3
|
+
# it runs in GitHub Actions instead (see the typecheck job in ci.yml)
|
|
4
|
+
skip: [mypy]
|
|
2
5
|
autoupdate_schedule: monthly
|
|
3
6
|
autofix_commit_msg: "style(pre-commit.ci): auto fixes [...]"
|
|
4
7
|
autoupdate_commit_msg: "ci(pre-commit.ci): autoupdate"
|
|
5
8
|
|
|
6
9
|
repos:
|
|
7
10
|
- repo: https://github.com/crate-ci/typos
|
|
8
|
-
rev: v1
|
|
11
|
+
rev: v1.50.3
|
|
9
12
|
hooks:
|
|
10
13
|
- id: typos
|
|
11
14
|
|
|
12
15
|
- repo: https://github.com/astral-sh/ruff-pre-commit
|
|
13
|
-
rev: v0.
|
|
16
|
+
rev: v0.16.10
|
|
14
17
|
hooks:
|
|
15
18
|
- id: ruff
|
|
16
19
|
args: [--fix]
|
|
17
20
|
- id: ruff-format
|
|
18
21
|
|
|
19
22
|
- repo: https://github.com/abravalheri/validate-pyproject
|
|
20
|
-
rev:
|
|
23
|
+
rev: '0.26'
|
|
21
24
|
hooks:
|
|
22
25
|
- id: validate-pyproject
|
|
23
26
|
|
|
24
27
|
- repo: https://github.com/pre-commit/mirrors-mypy
|
|
25
|
-
rev:
|
|
28
|
+
rev: v2.4.0
|
|
26
29
|
hooks:
|
|
27
30
|
- id: mypy
|
|
28
31
|
files: "^src/"
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: traccuracy
|
|
3
|
-
Version: 0.
|
|
3
|
+
Version: 0.5.0
|
|
4
4
|
Summary: Utilities for computing common accuracy metrics on cell tracking challenge solutions with ground truth
|
|
5
5
|
Author-email: Draga Doncila Pop <draga.doncilapop1@monash.edu>, Caroline Malin-Mayor <cmalinmayor@gmail.com>, Morgan Schwartz <msschwartz21@gmail.com>
|
|
6
6
|
License: BSD 3-Clause License
|
|
@@ -19,7 +19,7 @@ Classifier: Typing :: Typed
|
|
|
19
19
|
Requires-Python: >=3.10
|
|
20
20
|
Description-Content-Type: text/markdown
|
|
21
21
|
License-File: LICENSE
|
|
22
|
-
Requires-Dist: click
|
|
22
|
+
Requires-Dist: click
|
|
23
23
|
Requires-Dist: numpy
|
|
24
24
|
Requires-Dist: networkx
|
|
25
25
|
Requires-Dist: pandas
|
|
@@ -32,7 +32,8 @@ Requires-Dist: numba
|
|
|
32
32
|
Requires-Dist: pyarrow
|
|
33
33
|
Requires-Dist: scipy
|
|
34
34
|
Requires-Dist: skan>=0.13
|
|
35
|
-
Requires-Dist: geff>=1.0
|
|
35
|
+
Requires-Dist: geff>=1.3.0.1.2
|
|
36
|
+
Requires-Dist: pylapy[csgraph]>=1.2
|
|
36
37
|
Provides-Extra: test
|
|
37
38
|
Requires-Dist: pytest>=6.0; extra == "test"
|
|
38
39
|
Requires-Dist: pytest-cov; extra == "test"
|
|
@@ -50,7 +51,7 @@ Requires-Dist: traccuracy[typing]; extra == "dev"
|
|
|
50
51
|
Provides-Extra: docs
|
|
51
52
|
Requires-Dist: myst-nb<2,>=1.2.0; extra == "docs"
|
|
52
53
|
Requires-Dist: sphinx-autoapi==3.0.0; extra == "docs"
|
|
53
|
-
Requires-Dist:
|
|
54
|
+
Requires-Dist: sphinxcontrib-typer>=0.9.0; extra == "docs"
|
|
54
55
|
Requires-Dist: sphinx-rtd-theme<4,>=3.0.1; extra == "docs"
|
|
55
56
|
Requires-Dist: sphinx<8,>=7.4.7; extra == "docs"
|
|
56
57
|
Requires-Dist: matplotlib; extra == "docs"
|
|
@@ -112,22 +113,14 @@ from traccuracy.matchers import PointMatcher
|
|
|
112
113
|
from traccuracy.metrics import DivisionMetrics, BasicMetrics
|
|
113
114
|
|
|
114
115
|
# Load data in TrackingGraph objects
|
|
115
|
-
gt_data = load_ctc_data(
|
|
116
|
-
|
|
117
|
-
"path/to/GT/TRA/man_track.txt",
|
|
118
|
-
name="GT"
|
|
119
|
-
)
|
|
120
|
-
pred_data = load_ctc_data(
|
|
121
|
-
"path/to/prediction",
|
|
122
|
-
"path/to/prediction/track.txt",
|
|
123
|
-
name="prediction"
|
|
124
|
-
)
|
|
116
|
+
gt_data = load_ctc_data("path/to/GT/TRA", "path/to/GT/TRA/man_track.txt", name="GT")
|
|
117
|
+
pred_data = load_ctc_data("path/to/prediction", "path/to/prediction/track.txt", name="prediction")
|
|
125
118
|
|
|
126
119
|
results, matched = run_metrics(
|
|
127
120
|
gt_data=gt_data,
|
|
128
121
|
pred_data=pred_data,
|
|
129
122
|
matcher=PointMatcher(),
|
|
130
|
-
metrics=[DivisionMetrics(), BasicMetrics()]
|
|
123
|
+
metrics=[DivisionMetrics(), BasicMetrics()],
|
|
131
124
|
)
|
|
132
125
|
```
|
|
133
126
|
|
|
@@ -154,6 +147,7 @@ results, matched = run_metrics(
|
|
|
154
147
|
- [Track Effectiveness](https://traccuracy.readthedocs.io/en/latest/metrics/track_overlap.html#target-effectiveness)
|
|
155
148
|
- [Track Fractions](https://traccuracy.readthedocs.io/en/latest/metrics/track_overlap.html#track-fractions)
|
|
156
149
|
- [Complete Tracks](https://traccuracy.readthedocs.io/en/latest/metrics/track_overlap.html#complete-tracks)
|
|
150
|
+
- [Complete Tracks by Length](https://traccuracy.readthedocs.io/en/latest/metrics/complete-tracks-by-length.html) generalizes [Complete Tracks](https://traccuracy.readthedocs.io/en/latest/metrics/track_overlap.html#complete-tracks) to every track length, reporting the fraction of fully correct tracklets or lineages that span N frames. Based on the track accuracy evaluation from [Malin-Mayor et al. 2023](https://doi.org/10.1038/s41587-022-01427-7).
|
|
157
151
|
- [CHOTA](https://traccuracy.readthedocs.io/en/latest/metrics/chota.html#chota) from [Kaiser et al. 2024](https://doi.org/10.1007/978-3-031-91721-9_8).
|
|
158
152
|
|
|
159
153
|
## Featured Works
|
|
@@ -166,4 +160,5 @@ If you use `traccuracy` in your own work, please let us know so that we can feat
|
|
|
166
160
|
- [Bragantini, J. et al. (2024). Ultrack: pushing the limits of cell tracking across biological scales. bioRxiv.](https://doi.org/10.1101/2024.09.02.610652)
|
|
167
161
|
- [Gallusser, B., & Weigert, M. (2024). Trackastra: Transformer-based cell tracking for live-cell microscopy. In European Conference on Computer Vision.](https://doi.org/10.1007/978-3-031-73116-7_27)
|
|
168
162
|
- [Toma, T. T., Wang, Y., Gahlmann, A., & Acton, S. T. (2024). Deep Temporal Sequence Classification and Mathematical Modeling for Cell Tracking in Dense 3D Microscopy Videos of Bacterial Biofilms. arXiv preprint.](https://doi.org/10.48550/arXiv.2406.19574)
|
|
169
|
-
|
|
163
|
+
- [Lalit, M. & Funke, J. (2025) An Investigation of Unsupervised Cell Tracking and Interactive Fine-Tuning. In International Conference on Computer Vision (ICCV) Workshops](https://openaccess.thecvf.com/content/ICCV2025W/BIC/html/Lalit_An_Investigation_of_Unsupervised_Cell_Tracking_and_Interactive_Fine-Tuning_ICCVW_2025_paper.html)
|
|
164
|
+
- [Huygelen T, Lowe A, Mao Y, Vicente-Munuera P. (2026) easytrack: A napari plugin for automated parameter tuning in cell tracking. microPublication Biology.](https://doi.org/10.17912/micropub.biology.002090)
|
|
@@ -40,22 +40,14 @@ from traccuracy.matchers import PointMatcher
|
|
|
40
40
|
from traccuracy.metrics import DivisionMetrics, BasicMetrics
|
|
41
41
|
|
|
42
42
|
# Load data in TrackingGraph objects
|
|
43
|
-
gt_data = load_ctc_data(
|
|
44
|
-
|
|
45
|
-
"path/to/GT/TRA/man_track.txt",
|
|
46
|
-
name="GT"
|
|
47
|
-
)
|
|
48
|
-
pred_data = load_ctc_data(
|
|
49
|
-
"path/to/prediction",
|
|
50
|
-
"path/to/prediction/track.txt",
|
|
51
|
-
name="prediction"
|
|
52
|
-
)
|
|
43
|
+
gt_data = load_ctc_data("path/to/GT/TRA", "path/to/GT/TRA/man_track.txt", name="GT")
|
|
44
|
+
pred_data = load_ctc_data("path/to/prediction", "path/to/prediction/track.txt", name="prediction")
|
|
53
45
|
|
|
54
46
|
results, matched = run_metrics(
|
|
55
47
|
gt_data=gt_data,
|
|
56
48
|
pred_data=pred_data,
|
|
57
49
|
matcher=PointMatcher(),
|
|
58
|
-
metrics=[DivisionMetrics(), BasicMetrics()]
|
|
50
|
+
metrics=[DivisionMetrics(), BasicMetrics()],
|
|
59
51
|
)
|
|
60
52
|
```
|
|
61
53
|
|
|
@@ -82,6 +74,7 @@ results, matched = run_metrics(
|
|
|
82
74
|
- [Track Effectiveness](https://traccuracy.readthedocs.io/en/latest/metrics/track_overlap.html#target-effectiveness)
|
|
83
75
|
- [Track Fractions](https://traccuracy.readthedocs.io/en/latest/metrics/track_overlap.html#track-fractions)
|
|
84
76
|
- [Complete Tracks](https://traccuracy.readthedocs.io/en/latest/metrics/track_overlap.html#complete-tracks)
|
|
77
|
+
- [Complete Tracks by Length](https://traccuracy.readthedocs.io/en/latest/metrics/complete-tracks-by-length.html) generalizes [Complete Tracks](https://traccuracy.readthedocs.io/en/latest/metrics/track_overlap.html#complete-tracks) to every track length, reporting the fraction of fully correct tracklets or lineages that span N frames. Based on the track accuracy evaluation from [Malin-Mayor et al. 2023](https://doi.org/10.1038/s41587-022-01427-7).
|
|
85
78
|
- [CHOTA](https://traccuracy.readthedocs.io/en/latest/metrics/chota.html#chota) from [Kaiser et al. 2024](https://doi.org/10.1007/978-3-031-91721-9_8).
|
|
86
79
|
|
|
87
80
|
## Featured Works
|
|
@@ -94,4 +87,5 @@ If you use `traccuracy` in your own work, please let us know so that we can feat
|
|
|
94
87
|
- [Bragantini, J. et al. (2024). Ultrack: pushing the limits of cell tracking across biological scales. bioRxiv.](https://doi.org/10.1101/2024.09.02.610652)
|
|
95
88
|
- [Gallusser, B., & Weigert, M. (2024). Trackastra: Transformer-based cell tracking for live-cell microscopy. In European Conference on Computer Vision.](https://doi.org/10.1007/978-3-031-73116-7_27)
|
|
96
89
|
- [Toma, T. T., Wang, Y., Gahlmann, A., & Acton, S. T. (2024). Deep Temporal Sequence Classification and Mathematical Modeling for Cell Tracking in Dense 3D Microscopy Videos of Bacterial Biofilms. arXiv preprint.](https://doi.org/10.48550/arXiv.2406.19574)
|
|
97
|
-
|
|
90
|
+
- [Lalit, M. & Funke, J. (2025) An Investigation of Unsupervised Cell Tracking and Interactive Fine-Tuning. In International Conference on Computer Vision (ICCV) Workshops](https://openaccess.thecvf.com/content/ICCV2025W/BIC/html/Lalit_An_Investigation_of_Unsupervised_Cell_Tracking_and_Interactive_Fine-Tuning_ICCVW_2025_paper.html)
|
|
91
|
+
- [Huygelen T, Lowe A, Mao Y, Vicente-Munuera P. (2026) easytrack: A napari plugin for automated parameter tuning in cell tracking. microPublication Biology.](https://doi.org/10.17912/micropub.biology.002090)
|
|
@@ -1,35 +1,36 @@
|
|
|
1
1
|
# Traccuracy Developer Notes
|
|
2
2
|
|
|
3
|
-
We
|
|
3
|
+
We use [`uv`](https://docs.astral.sh/uv/) for environment management and [`just`](https://just.systems/) as a task runner while developing `traccuracy`. See their docs for installation instructions. Run `just` to list all available tasks. All of the same tasks can be completed with pip and another environment manager by running the commands in the `justfile` directly.
|
|
4
4
|
|
|
5
5
|
## Development
|
|
6
6
|
For local development, clone the repo and install in editable mode.
|
|
7
7
|
```
|
|
8
8
|
git clone https://github.com/live-image-tracking-tools/traccuracy.git
|
|
9
|
-
|
|
9
|
+
# Create/update the .venv with all extras (dev, docs, test, covreport, typing)
|
|
10
|
+
uv sync --all-extras
|
|
10
11
|
```
|
|
11
12
|
|
|
12
13
|
### Testing
|
|
13
14
|
To run basic tests
|
|
14
15
|
```
|
|
15
|
-
|
|
16
|
+
just test
|
|
16
17
|
```
|
|
17
18
|
|
|
18
19
|
We run benchmarking on every commit into main to keep track of any potential performance regression. To run benchmarking locally:
|
|
19
20
|
```
|
|
20
|
-
|
|
21
|
+
just benchmark
|
|
21
22
|
```
|
|
22
|
-
This command should download the data (alternatively run `
|
|
23
|
+
This command should download the data (alternatively run `just getdata`) and then run benchmarking.
|
|
23
24
|
|
|
24
25
|
`traccuracy` tests are built around a set of standard test cases available in `tests.examples`. To check coverage of matcher and error modules against standard tests cases, run
|
|
25
26
|
```
|
|
26
|
-
|
|
27
|
+
just test-case-report
|
|
27
28
|
```
|
|
28
29
|
|
|
29
30
|
### Style
|
|
30
31
|
We utilize `pre-commit` with black (formatting) and ruff (linting). If you would like to run `pre-commit` locally:
|
|
31
32
|
```
|
|
32
|
-
|
|
33
|
+
just pre-commit-install
|
|
33
34
|
```
|
|
34
35
|
Alternatively [pre-commit.ci](https://pre-commit.ci/), will run and commit changes on any open PRs.
|
|
35
36
|
|
|
@@ -43,7 +44,7 @@ git push --follow-tags
|
|
|
43
44
|
### Documentation
|
|
44
45
|
Documentation is built with Sphinx using `sphinx-autoapi` to automatically generate API documentation at build time. Docs are hosted on ReadTheDocs and build automatically after each push to main. Documentation can be built locally by running the following:
|
|
45
46
|
```
|
|
46
|
-
|
|
47
|
+
just docs
|
|
47
48
|
```
|
|
48
49
|
|
|
49
50
|
Note that running documentation locally requires Pandoc to be installed as well - https://pandoc.org/installing.html.
|