Skip to content

Commit 2ea6cd2

Browse files
Version bump.
1 parent b9c3738 commit 2ea6cd2

2 files changed

Lines changed: 22 additions & 18 deletions

File tree

RELEASE_NOTES.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1,3 @@
1-
- Uses new dipui format, that is robust to being corrupted on crashed and contains error correcting behavior.
1+
- Fix regression caused by new version of keras that caused sleap models to fail to load by pinning the keras version.
2+
- Add code to detect old dipui files (created before version 0.4.0) and notify the user instead of crashing.
3+
- Adds command `diplomat update_ui_state` which allows for converting old dipui files to the new dipui format.

diplomat/__init__.py

Lines changed: 19 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -2,31 +2,31 @@
22
A tool providing multi-animal tracking capabilities on top of other Deep learning based tracking software.
33
"""
44

5-
__version__ = "0.4.0"
5+
__version__ = "0.4.1"
66

77
import warnings
88

99
# Can be used by functions to determine if diplomat was invoked through it's CLI interface.
1010
CLI_RUN = False
1111

12-
from diplomat.predictor_ops import (
13-
list_predictor_plugins,
14-
get_predictor_settings,
15-
test_predictor_plugin,
16-
)
17-
from diplomat.frontend_ops import list_all_frontends, list_loaded_frontends
18-
from diplomat.utils.video_splitter import split_videos
1912
from diplomat.core_ops import (
20-
track_with,
13+
annotate,
14+
convert_tracks,
15+
interact,
2116
track,
2217
track_and_interact,
23-
annotate,
18+
track_with,
2419
tweak,
20+
update_ui_state,
2521
yaml,
26-
interact,
27-
convert_tracks,
28-
update_ui_state
2922
)
23+
from diplomat.frontend_ops import list_all_frontends, list_loaded_frontends
24+
from diplomat.predictor_ops import (
25+
get_predictor_settings,
26+
list_predictor_plugins,
27+
test_predictor_plugin,
28+
)
29+
from diplomat.utils.video_splitter import split_videos
3030

3131
__all__ = [
3232
"list_predictor_plugins",
@@ -43,17 +43,19 @@
4343
"yaml",
4444
"interact",
4545
"convert_tracks",
46-
"update_ui_state"
46+
"update_ui_state",
4747
]
4848

49+
4950
# Attempt to load all frontends, putting their public functions into submodules of diplomat.
5051
def _load_frontends():
52+
from multiprocessing import current_process
53+
from types import ModuleType
54+
5155
from diplomat import frontends
5256
from diplomat.frontends import DIPLOMATFrontend
53-
from diplomat.utils.pluginloader import load_plugin_classes
5457
from diplomat.utils._function_tools import replace_function_name_and_module
55-
from types import ModuleType
56-
from multiprocessing import current_process
58+
from diplomat.utils.pluginloader import load_plugin_classes
5759

5860
if current_process().name != "MainProcess":
5961
# If something in this package is using multiprocessing, disable the automatic frontend loading code.

0 commit comments

Comments
 (0)