Skip to content

Commit f69c46a

Browse files
committed
fix(pose_estimation): Save config to outbox as dj_dlc_config
1 parent 8fff7b0 commit f69c46a

File tree

4 files changed

+6
-5
lines changed

4 files changed

+6
-5
lines changed

CHANGELOG.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,9 @@
33
Observes [Semantic Versioning](https://semver.org/spec/v2.0.0.html) standard and
44
[Keep a Changelog](https://keepachangelog.com/en/1.0.0/) convention.
55

6+
## [0.3.2] - 2024-09-09
7+
8+
+ Fix - Save config file to output directory as `dj_dlc_config`
69

710
## [0.3.1] - 2024-08-16
811

element_deeplabcut/model.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -784,9 +784,7 @@ def do_analyze_videos():
784784
# ---- Write config files ----
785785
config_filename = f"dj_dlc_config_{datetime.now(tz=timezone.utc).strftime('%Y%m%d_%H%M%S')}.yaml"
786786
# To output dir: Important for loading/parsing output in datajoint
787-
_ = dlc_reader.save_yaml(
788-
output_dir, dlc_config, filename=config_filename
789-
)
787+
_ = dlc_reader.save_yaml(output_dir, dlc_config)
790788
# To project dir: Required by DLC to run the analyze_videos
791789
if dlc_project_path != output_dir:
792790
config_filepath = dlc_reader.save_yaml(

element_deeplabcut/readers/dlc_reader.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -238,7 +238,7 @@ def save_yaml(
238238
if "config_template" in config_dict: # if passed full model.Model dict
239239
config_dict = config_dict["config_template"]
240240
if mkdir:
241-
output_dir.mkdir(exist_ok=True)
241+
Path(output_dir).mkdir(exist_ok=True)
242242
if "." in filename: # if user provided extension, remove
243243
filename = filename.split(".")[0]
244244

element_deeplabcut/version.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,4 @@
22
Package metadata
33
"""
44

5-
__version__ = "0.3.1"
5+
__version__ = "0.3.2"

0 commit comments

Comments
 (0)