Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CLI command count-frames does not print anything #95

Open
quantumdot opened this issue Feb 26, 2024 · 0 comments
Open

CLI command count-frames does not print anything #95

quantumdot opened this issue Feb 26, 2024 · 0 comments

Comments

@quantumdot
Copy link

Running the CLI command moseq2-model count-frames pca_scores.h5 produces no useful output. Here is what my output looks like with current versions of this package:

$ moseq2-model count-frames _pca/pca_scores.h5
Found pcs in scores
/home/user/environments/.miniconda3/envs/moseq2-app/lib/python3.7/site-packages/moseq2_model/util.py:88: UserWarning: groups key not found in h5 file, assigning each session to unique group if no moseq2-index.yaml
  warnings.warn('groups key not found in h5 file, assigning each session to unique group if no moseq2-index.yaml')

Older versions of this package would print the number of frames to stdout. Here is the output from an older version:

$ moseq2-model count-frames _pca/pca_scores.h5
Found pcs in scores
Total frames: 33981746

Looks like this function was refactored in commit b48af33 in order to put the logic behind a wrapper function which just returns the number of frames, but now the command function itself makes no effort to print the returned frame count.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant