Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Pull from main #125

Merged
merged 2 commits into from
Sep 9, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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 @@ -784,9 +784,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"
Loading