Skip to content
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
2 changes: 1 addition & 1 deletion deeplabcut/core/config/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -238,7 +238,7 @@ def wrapper(*args, **kwargs):
# -----------------------------------------------------------------------------


@deprecated(replacement="deeplabcut.core.config.ProjectConfig", since="3.1")
@deprecated(replacement="deeplabcut.core.config.ProjectConfig", since="3.0.1")
def create_config_template(multianimal: bool = False) -> tuple:
"""
Creates a template for config.yaml file. This specific order is preserved while saving as yaml file.
Expand Down
6 changes: 3 additions & 3 deletions deeplabcut/pose_estimation_pytorch/config/make_pose_config.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@
logger = logging.getLogger(__name__)


@deprecated(replacement="pose_estimation_pytorch.config.TestConfig.build", since="3.1")
@deprecated(replacement="pose_estimation_pytorch.config.TestConfig.build", since="3.0.1")
def make_pytorch_test_config(
model_config: PoseConfig | dict | str | Path,
test_config_path: str | Path,
Expand All @@ -49,7 +49,7 @@ def make_pytorch_test_config(
return TestConfig.build(model_config, test_config_path=test_config_path, save=save)


@deprecated(replacement="pose_estimation_pytorch.config.PoseConfig.build", since="3.1")
@deprecated(replacement="pose_estimation_pytorch.config.PoseConfig.build", since="3.0.1")
def make_pytorch_pose_config(
project_config: ProjectConfig | dict | Path | str,
pose_config_path: str | Path,
Expand All @@ -74,7 +74,7 @@ def make_pytorch_pose_config(
)


@deprecated(replacement="pose_estimation_pytorch.config.PoseMetadata", since="3.1")
@deprecated(replacement="pose_estimation_pytorch.config.PoseMetadata", since="3.0.1")
def make_basic_project_config(
dataset_path: Path | str,
bodyparts: list[str],
Expand Down
6 changes: 3 additions & 3 deletions deeplabcut/pose_estimation_pytorch/config/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -118,18 +118,18 @@ def get_updated_value(variable: str) -> int | list[int]:
return config


@deprecated(replacement=None, since="3.1")
@deprecated(replacement=None, since="3.0.1")
def update_config(config: dict, updates: dict, copy_original: bool = True) -> dict:
"""Deprecated helper for updating config dictionaries."""
from deeplabcut.pose_estimation_pytorch.config.make_pose_config import _update_config

return _update_config(config, updates, copy_original)


@deprecated(replacement=None, since="3.1")
@deprecated(replacement=None, since="3.0.1")
def update_config_by_dotpath(config: dict, updates: dict, copy_original: bool = True) -> dict:
"""Deprecated helper for updating config dictionaries using dot notation.
``DLCBaseConfig.set_nested`` (new in 3.1) can be used instead (not identical).
``DLCBaseConfig.set_nested`` (new in 3.0.1) can be used instead (not identical).

Updates items in the configuration file using dot notation for nested keys

Expand Down
2 changes: 1 addition & 1 deletion deeplabcut/pose_estimation_pytorch/data/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ class Loader(ABC):
Returns a dictionary containing dataset parameters derived from the configuration.
"""

@renamed_parameter(old="model_config_path", new="model_config", since="3.1.0")
@renamed_parameter(old="model_config_path", new="model_config", since="3.0.1")
def __init__(
self,
project_root: str | Path,
Expand Down
2 changes: 1 addition & 1 deletion deeplabcut/pose_estimation_pytorch/modelzoo/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,7 @@ def build_superanimal_finetune_config(
return model_cfg


@deprecated(replacement="PoseConfig.build_for_superanimal_finetune", since="3.1")
@deprecated(replacement="PoseConfig.build_for_superanimal_finetune", since="3.0.1")
def make_super_animal_finetune_config(
weight_init: WeightInitialization,
project_config: dict,
Expand Down
2 changes: 1 addition & 1 deletion deeplabcut/pose_estimation_pytorch/modelzoo/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ def get_super_animal_snapshot_path(
return model_path


@deprecated(replacement="PoseConfig.build_for_superanimal_inference", since="3.1")
@deprecated(replacement="PoseConfig.build_for_superanimal_inference", since="3.0.1")
def load_super_animal_config(
super_animal: str,
model_name: str,
Expand Down