dattalab / keypoint-moseq

https://keypoint-moseq.readthedocs.io
Other
68 stars 28 forks source link

Generate Trajectories: The keyword `fps` is no longer supported. Use `duration`(in ms) instead, e.g. `fps=50` == `duration=20` (1000 * 1/50). #33

Closed samarth-wustl closed 1 year ago

samarth-wustl commented 1 year ago

image

samarth-wustl commented 1 year ago

This is for moseq 0.0.5

calebweinreb commented 1 year ago

This shouldn't be the case for 0.0.5. Can you confirm that that's the current version you have installed? In the following traceback (which you sent over slack), the problematic line reflects the code as of 0.0.3 at the latest.

image

calebweinreb commented 1 year ago

In any case, even without the latest release this problem can be addressed by not saving a gif of the trajectory plots (save_gifs=False). If you still want an animation, you can save an mp4 instead (save_mp4s=True). To the command would be:

kpms.generate_trajectory_plots(coordinates=coordinates, name=name, project_dir=project_dir, 
                               save_figs=False, save_mp4s=True, **config())