Skip to content

Commit

Permalink
cleanup setup_project call
Browse files Browse the repository at this point in the history
  • Loading branch information
samuelbray32 committed Jan 3, 2025
1 parent 5a33090 commit bd29c76
Showing 1 changed file with 4 additions and 7 deletions.
11 changes: 4 additions & 7 deletions src/spyglass/behavior/v1/moseq.py
Original file line number Diff line number Diff line change
Expand Up @@ -128,19 +128,16 @@ def make(self, key):
if os.path.lexists(destination):
os.remove(destination) # remove if it's a broken symlink
os.symlink(video, destination)
bodyparts = (PoseGroup & key).fetch1("bodyparts")
skeleton = model_params["skeleton"]
anterior_bodyparts = model_params.get("anterior_bodyparts", None)
posterior_bodyparts = model_params.get("posterior_bodyparts", None)

bodyparts = (PoseGroup & key).fetch1("bodyparts")
kpms.setup_project(
str(project_dir),
video_dir=str(video_dir),
bodyparts=bodyparts,
skeleton=skeleton,
skeleton=model_params["skeleton"],
use_bodyparts=bodyparts,
anterior_bodyparts=anterior_bodyparts,
posterior_bodyparts=posterior_bodyparts,
anterior_bodyparts=model_params.get("anterior_bodyparts", None),
posterior_bodyparts=model_params.get("posterior_bodyparts", None),
)

config = self._config_func(project_dir)
Expand Down

0 comments on commit bd29c76

Please sign in to comment.