quantumjot / btrack

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

When saving 'TrackerConfig', set '.name' based on filename if it is currently 'Default' #243

Closed p-j-smith closed 1 year ago

p-j-smith commented 1 year ago

When creating a TrackerConfig the default name is 'Default', which means users don't have to worry about explicitly setting a name.

However, if someone saves several configs and later wants to load them into the napari-btrack plugin, this won't be possible if they share the same name Default (because config names in the gui must be unique).

The plugin could allow duplicate config names - but this would be confusing when selecting which one to use. Or, when exporting the config we could set TrackerConfig.name based on the filename stem if the name is currently 'Default'

paddyroddy commented 1 year ago

Closed in #391