quantumjot / btrack

Bayesian multi-object tracking
https://btrack.readthedocs.io
MIT License
312 stars 49 forks source link

Improvements to hypothesis tab #378

Closed paddyroddy closed 1 year ago

paddyroddy commented 1 year ago

This PR is a catch all for various changes related to the napari plugin and things done in the last few days. I'll make a separate issue to test this.

image
deprecated-napari-hub-preview-bot[bot] commented 1 year ago

Preview page for your plugin is ready here: https://preview.napari-hub.org/quantumjot/btrack/378 Updated: 2023-08-09T10:20:43.966561

codecov-commenter commented 1 year ago

Codecov Report

Patch coverage: 76.76% and project coverage change: +0.47% :tada:

Comparison is base (b088dbf) 85.02% compared to head (fc9bb9c) 85.50%. Report is 2 commits behind head on main.

:exclamation: Your organization is not using the GitHub App Integration. As a result you may experience degraded service beginning May 15th. Please install the Github App Integration for your organization. Read more.

Additional details and impacted files ```diff @@ Coverage Diff @@ ## main #378 +/- ## ========================================== + Coverage 85.02% 85.50% +0.47% ========================================== Files 26 31 +5 Lines 1863 2207 +344 Branches 338 404 +66 ========================================== + Hits 1584 1887 +303 - Misses 210 236 +26 - Partials 69 84 +15 ``` | [Files Changed](https://app.codecov.io/gh/quantumjot/btrack/pull/378?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=Alan+R+Lowe) | Coverage Δ | | |---|---|---| | [btrack/core.py](https://app.codecov.io/gh/quantumjot/btrack/pull/378?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=Alan+R+Lowe#diff-YnRyYWNrL2NvcmUucHk=) | `83.25% <0.00%> (-0.75%)` | :arrow_down: | | [btrack/napari/main.py](https://app.codecov.io/gh/quantumjot/btrack/pull/378?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=Alan+R+Lowe#diff-YnRyYWNrL25hcGFyaS9tYWluLnB5) | `65.15% <0.00%> (-1.01%)` | :arrow_down: | | [btrack/napari/writer.py](https://app.codecov.io/gh/quantumjot/btrack/pull/378?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=Alan+R+Lowe#diff-YnRyYWNrL25hcGFyaS93cml0ZXIucHk=) | `0.00% <0.00%> (ø)` | | | [btrack/utils.py](https://app.codecov.io/gh/quantumjot/btrack/pull/378?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=Alan+R+Lowe#diff-YnRyYWNrL3V0aWxzLnB5) | `83.83% <79.31%> (ø)` | | | [btrack/config.py](https://app.codecov.io/gh/quantumjot/btrack/pull/378?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=Alan+R+Lowe#diff-YnRyYWNrL2NvbmZpZy5weQ==) | `96.82% <100.00%> (ø)` | | | [btrack/constants.py](https://app.codecov.io/gh/quantumjot/btrack/pull/378?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=Alan+R+Lowe#diff-YnRyYWNrL2NvbnN0YW50cy5weQ==) | `100.00% <100.00%> (ø)` | | | [btrack/datasets.py](https://app.codecov.io/gh/quantumjot/btrack/pull/378?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=Alan+R+Lowe#diff-YnRyYWNrL2RhdGFzZXRzLnB5) | `86.84% <100.00%> (+1.99%)` | :arrow_up: | | [btrack/napari/reader.py](https://app.codecov.io/gh/quantumjot/btrack/pull/378?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=Alan+R+Lowe#diff-YnRyYWNrL25hcGFyaS9yZWFkZXIucHk=) | `75.00% <100.00%> (+1.66%)` | :arrow_up: | | [btrack/napari/sync.py](https://app.codecov.io/gh/quantumjot/btrack/pull/378?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=Alan+R+Lowe#diff-YnRyYWNrL25hcGFyaS9zeW5jLnB5) | `94.33% <100.00%> (+0.22%)` | :arrow_up: | | [btrack/napari/widgets/\_general.py](https://app.codecov.io/gh/quantumjot/btrack/pull/378?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=Alan+R+Lowe#diff-YnRyYWNrL25hcGFyaS93aWRnZXRzL19nZW5lcmFsLnB5) | `100.00% <100.00%> (ø)` | | | ... and [2 more](https://app.codecov.io/gh/quantumjot/btrack/pull/378?src=pr&el=tree-more&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=Alan+R+Lowe) | | ... and [2 files with indirect coverage changes](https://app.codecov.io/gh/quantumjot/btrack/pull/378/indirect-changes?src=pr&el=tree-more&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=Alan+R+Lowe)

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.

paddyroddy commented 1 year ago

it's looking good! You can add a callback with the other ones to disable the Optimiser tab when enable optimisation is unchecked:

btrack_widget.enable_optimisation.toggled.connect(
    lambda is_checked: btrack_widget._tabs.setTabEnabled(2, is_checked)
)

Separate PR

paddyroddy commented 1 year ago

Now looks like this. Decided to also shrink the logo and move Track above the config so it is always visible. Will now write some tests #388

image