Repository navigation
Conversation
|
great work @C-Achard! A few points:
Do you think this first migration PR is a good candidate to include in 3.1 maybe? I think that might be good. The scope is relatively small still, before the labeled data. |
Agreed!
My bad, fixed now.
I will see what the easiest for now, before we decide whether we should move to repo-side docs gathered and rebuilt here. |
|
I think it can go in 3.1 too |
Would you prefer me to implement it in |
|
I feel it might be best to have #3589 in 3.0.4 and migrate all in 3.1? |
Scope
Replaces DeepLabCut's config core (
base_config,project_config,validation,versioning, the generic YAML helpers andDLCDeprecationWarning) with the same code from dlccore 0.0.1, now a dependency. DeepLabCut-specific helpers (templates,read_config,edit_config, 3D config writers,write_project_config) stay indeeplabcut/core/config/utils.py. No change to the config schema or file format.Main changes
sys.modulesunder their olddeeplabcut.core.config.*paths, as the same module objects, so existing imports keep working and patches through the old paths reach dlccore.DLCDeprecationWarningis dlccore's class, re-exported fromdeeplabcut.core.deprecation, so warning filters on either name match.tests/core/config/test_dlccore_aliases.pycovers the old import paths, patching through them, the warning class and the pose migrations.dlccore>=0.0.1,<0.1and raises theruamel-yamlfloor to>=0.16to match dlccore.dlccore