Skip to content

Commit

Permalink
https://github.com/datajoint/element-deeplabcut/issues/82
Browse files Browse the repository at this point in the history
  • Loading branch information
trose-neuro committed Jul 28, 2023
1 parent 7e535a8 commit 74b1f34
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion element_deeplabcut/model.py
Original file line number Diff line number Diff line change
Expand Up @@ -776,7 +776,7 @@ def get_trajectory(cls, key: dict, body_parts: list = "all") -> pd.DataFrame:
df = None
for body_part in body_parts:
x_pos, y_pos, z_pos, likelihood = (
cls.BodyPartPosition & {"body_part": body_part}
cls.BodyPartPosition & key & {"body_part": body_part} #TR23: added key restraint!
).fetch1("x_pos", "y_pos", "z_pos", "likelihood")
if not z_pos:
z_pos = np.zeros_like(x_pos)
Expand Down

0 comments on commit 74b1f34

Please sign in to comment.