Skip to content

Commit 144c34a

Browse files
committed
fix(dlc_plots): bugfix import errors
1 parent ddd5c16 commit 144c34a

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

element_deeplabcut/plotting/dlc_plots.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,14 +9,15 @@ def plotting_results(pose_estimation_key: dict):
99
plots_dir (Path): Path to the folder containing the plots
1010
"""
1111
import deeplabcut
12-
from element_deeplabcut import dlc_reader, model
12+
from element_deeplabcut import model
13+
from element_deeplabcut.readers import dlc_reader
1314

1415
output_dir = (model.PoseEstimationTask & pose_estimation_key).fetch1(
1516
"pose_estimation_output_dir"
1617
)
1718
output_dir = model.find_full_path(model.get_dlc_root_data_dir(), output_dir)
1819

19-
dlc_result = dlc_reader.PoseEstimation(output_dir)
20+
dlc_result = dlc_reader.PoseEstimation(output_dir.as_posix())
2021

2122
plots_dir = output_dir / "plots"
2223
plots_dir.mkdir(exist_ok=True)

0 commit comments

Comments
 (0)