Visitar URL original
update deprecation markers "3.1" -> "3.0.1" (#3422) · DeepLabCut/DeepLabCut@ab9e270 · GitHub
Skip to content

Commit ab9e270

Browse files
authored
update deprecation markers "3.1" -> "3.0.1" (#3422)
1 parent 307c380 commit ab9e270

6 files changed

Lines changed: 10 additions & 10 deletions

File tree

‎deeplabcut/core/config/utils.py‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -238,7 +238,7 @@ def wrapper(*args, **kwargs):
238238
# -----------------------------------------------------------------------------
239239

240240

241-
@deprecated(replacement="deeplabcut.core.config.ProjectConfig", since="3.1")
241+
@deprecated(replacement="deeplabcut.core.config.ProjectConfig", since="3.0.1")
242242
def create_config_template(multianimal: bool = False) -> tuple:
243243
"""
244244
Creates a template for config.yaml file. This specific order is preserved while saving as yaml file.

‎deeplabcut/pose_estimation_pytorch/config/make_pose_config.py‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@
3838
logger = logging.getLogger(__name__)
3939

4040

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

5151

52-
@deprecated(replacement="pose_estimation_pytorch.config.PoseConfig.build", since="3.1")
52+
@deprecated(replacement="pose_estimation_pytorch.config.PoseConfig.build", since="3.0.1")
5353
def make_pytorch_pose_config(
5454
project_config: ProjectConfig | dict | Path | str,
5555
pose_config_path: str | Path,
@@ -74,7 +74,7 @@ def make_pytorch_pose_config(
7474
)
7575

7676

77-
@deprecated(replacement="pose_estimation_pytorch.config.PoseMetadata", since="3.1")
77+
@deprecated(replacement="pose_estimation_pytorch.config.PoseMetadata", since="3.0.1")
7878
def make_basic_project_config(
7979
dataset_path: Path | str,
8080
bodyparts: list[str],

‎deeplabcut/pose_estimation_pytorch/config/utils.py‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -118,18 +118,18 @@ def get_updated_value(variable: str) -> int | list[int]:
118118
return config
119119

120120

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

126126
return _update_config(config, updates, copy_original)
127127

128128

129-
@deprecated(replacement=None, since="3.1")
129+
@deprecated(replacement=None, since="3.0.1")
130130
def update_config_by_dotpath(config: dict, updates: dict, copy_original: bool = True) -> dict:
131131
"""Deprecated helper for updating config dictionaries using dot notation.
132-
``DLCBaseConfig.set_nested`` (new in 3.1) can be used instead (not identical).
132+
``DLCBaseConfig.set_nested`` (new in 3.0.1) can be used instead (not identical).
133133
134134
Updates items in the configuration file using dot notation for nested keys
135135

‎deeplabcut/pose_estimation_pytorch/data/base.py‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ class Loader(ABC):
4747
Returns a dictionary containing dataset parameters derived from the configuration.
4848
"""
4949

50-
@renamed_parameter(old="model_config_path", new="model_config", since="3.1.0")
50+
@renamed_parameter(old="model_config_path", new="model_config", since="3.0.1")
5151
def __init__(
5252
self,
5353
project_root: str | Path,

‎deeplabcut/pose_estimation_pytorch/modelzoo/config.py‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -140,7 +140,7 @@ def build_superanimal_finetune_config(
140140
return model_cfg
141141

142142

143-
@deprecated(replacement="PoseConfig.build_for_superanimal_finetune", since="3.1")
143+
@deprecated(replacement="PoseConfig.build_for_superanimal_finetune", since="3.0.1")
144144
def make_super_animal_finetune_config(
145145
weight_init: WeightInitialization,
146146
project_config: dict,

‎deeplabcut/pose_estimation_pytorch/modelzoo/utils.py‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ def get_super_animal_snapshot_path(
8989
return model_path
9090

9191

92-
@deprecated(replacement="PoseConfig.build_for_superanimal_inference", since="3.1")
92+
@deprecated(replacement="PoseConfig.build_for_superanimal_inference", since="3.0.1")
9393
def load_super_animal_config(
9494
super_animal: str,
9595
model_name: str,

0 commit comments

Comments
 (0)