dattalab / keypoint-moseq

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

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

Closed juliagorman closed 1 year ago

juliagorman commented 1 year ago

When I run the generate trajectory plots command, I get this keyword error but I don't see anywhere I can change the keyword from fps to 'duration' in my code when I command+f 'fps'

Screenshot 2023-04-27 at 2 08 35 PM
calebweinreb commented 1 year ago

This will be fixed in the next release. In the meantime, you can avoid the error by adding "save_gifs=False" when making trajectory plots. If you want trajectory plot videos, you can also include "save_mp4s=True".

calebweinreb commented 1 year ago

Fixed by https://github.com/dattalab/keypoint-moseq/commit/7656a1e67d9ec0502c517d105bcfcc02326f7e09

juliagorman commented 1 year ago

Do I need to remove the env and re-install for the newest release

calebweinreb commented 1 year ago

It's not released yet. For now you can do one of the following:

  1. Install the dev version (in the same environment):
    pip install -U git+https://github.com/dattalab/keypoint-moseq@dev
  2. Avoid saving gifs as suggested above
  3. Downgrade imageio, e.g.
    pip install --force-reinstall imageio==2.23.0