Skip to content

Commit 65b65c3

Browse files
committed
minor update
1 parent 35b5c60 commit 65b65c3

File tree

1 file changed

+9
-3
lines changed

1 file changed

+9
-3
lines changed

element_moseq/moseq_train.py

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -398,9 +398,15 @@ def make_compute(
398398
PCATask.update1(
399399
{**key, "kpms_project_output_dir": kpms_project_output_dir}
400400
)
401-
kpms_project_output_dir = (
402-
Path(get_kpms_processed_data_dir()) / kpms_project_output_dir
403-
)
401+
402+
try:
403+
kpms_project_output_dir = find_full_path(
404+
get_kpms_processed_data_dir(), kpms_project_output_dir
405+
)
406+
except FileNotFoundError:
407+
kpms_project_output_dir = (
408+
Path(get_kpms_processed_data_dir()) / kpms_project_output_dir
409+
)
404410

405411
# Resolve kpset_dir to absolute and check if it exists
406412
kpset_dir = find_full_path(get_kpms_root_data_dir(), kpset_dir)

0 commit comments

Comments
 (0)