Add option to export to CSV via sleap-convert
and API
#1713
Labels
enhancement
New feature or request
sleap-convert
and API
#1713
It would be convenient to be able to export predictions stored in .SLP files to .CSV (see linked discussion).
Enhancement plan
csv
as an option for the--format
flag in thesleap-convert
CLI here:sleap/sleap/io/convert.py
Lines 67 to 75 in 2d24296
csv=True
in thesleap-convert
CLI entrypoint function:sleap/sleap/io/convert.py
Lines 165 to 172 in 2d24296
csv
as an option in the actual analysis exporting writer:sleap/sleap/io/convert.py
Lines 177 to 181 in 2d24296
Discussed in #1629
Originally posted by talmo December 7, 2023
In #1438, we added a feature to export tracks to CSV format from the GUI.
It would be great to be able to do that via the
sleap-export
CLI and theLabels.export()
API.For
sleap-export
, we just need to add CSV as a target format and pass incsv=True
in the export call here.For
Labels.export()
, we probably want to extend what's going on here.We should also be sure to support the new functionality being added in #1624.
Relevant: #1627
The text was updated successfully, but these errors were encountered: