Skip to content

Commit

Permalink
Merge pull request #125 from datajoint/main
Browse files Browse the repository at this point in the history
Pull from `main`
  • Loading branch information
ttngu207 authored Sep 9, 2024
2 parents 79edc1d + a1073bb commit 52a6164
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 5 deletions.
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,9 @@
Observes [Semantic Versioning](https://semver.org/spec/v2.0.0.html) standard and
[Keep a Changelog](https://keepachangelog.com/en/1.0.0/) convention.

## [0.3.2] - 2024-09-09

+ Fix - Save config file to output directory as `dj_dlc_config`

## [0.3.1] - 2024-08-16

Expand Down
4 changes: 1 addition & 3 deletions element_deeplabcut/model.py
Original file line number Diff line number Diff line change
Expand Up @@ -792,9 +792,7 @@ def do_analyze_videos():
# ---- Write config files ----
config_filename = f"dj_dlc_config_{datetime.now(tz=timezone.utc).strftime('%Y%m%d_%H%M%S')}.yaml"
# To output dir: Important for loading/parsing output in datajoint
_ = dlc_reader.save_yaml(
output_dir, dlc_config, filename=config_filename
)
_ = dlc_reader.save_yaml(output_dir, dlc_config)
# To project dir: Required by DLC to run the analyze_videos
if dlc_project_path != output_dir:
config_filepath = dlc_reader.save_yaml(
Expand Down
2 changes: 1 addition & 1 deletion element_deeplabcut/readers/dlc_reader.py
Original file line number Diff line number Diff line change
Expand Up @@ -238,7 +238,7 @@ def save_yaml(
if "config_template" in config_dict: # if passed full model.Model dict
config_dict = config_dict["config_template"]
if mkdir:
output_dir.mkdir(exist_ok=True)
Path(output_dir).mkdir(exist_ok=True)
if "." in filename: # if user provided extension, remove
filename = filename.split(".")[0]

Expand Down
2 changes: 1 addition & 1 deletion element_deeplabcut/version.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@
Package metadata
"""

__version__ = "0.3.1"
__version__ = "0.3.2"

0 comments on commit 52a6164

Please sign in to comment.