-
Couldn't load subscription status.
- Fork 119
Fix naming convention for sleap-convert #881
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
Conversation
Codecov Report
@@ Coverage Diff @@
## develop #881 +/- ##
===========================================
+ Coverage 66.69% 66.73% +0.03%
===========================================
Files 129 129
Lines 21728 21729 +1
===========================================
+ Hits 14492 14500 +8
+ Misses 7236 7229 -7
📣 Codecov can now indicate which changes are the most critical in Pull Requests. Learn more |
…l/convert_output-path
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lgtm
one small suggestion: in the docs <input path> could maybe be <slp path> so it's clear what we mean by input here? Also an example could be good, like:
Path to output file (optional). The analysis format expects an
output path per video in the project. Otherwise, the default
naming convention
<input path>.<video index>_<video filename>.analysis.h5 will be
used for every video without a specified output path. Multiple
outputs can be specified, each preceded by --output.
Example:
> sleap-convert predictions.slp
predictions.000_video.analysis.h5
predictions.001_video.analysis.h5
...
Does that look right?
Description
In #768, we added a feature to handle creating analysis files for multi-video projects; however, we also implemented a semi-automatic naming convention which is unintuitive to users.
This PR gives users control over the output path (as it should have always been) and only starts creating default names if no output path is given for a video in the project.
Ex. 3 output names given with 4 videos will generate 1 default name. Output names are mapped to videos based on ordering of names given and video index in the project.
Types of changes
Does this address any currently open issues?
sleap-convert names files with 000.filename #876
Outside contributors checklist
Thank you for contributing to SLEAP!
❤️