Skip to content

Best way to import DLTdv CSV into SLEAP #1655

Answered by talmo
andrewdclark asked this question in Help!
Discussion options

You must be logged in to vote

Hi @andrewdclark,

Good question!

Yes, you can import pretty much any data type to SLEAP using our API. Thanks for providing the test CSV file! I whipped up a quick notebook that converts files in that format to a SLEAP-compatible project.

You can find it here: https://colab.research.google.com/drive/1QeLhvaFIIUMeXi5rd2OQlOPazANvROtP?usp=sharing

You can run this locally in your SLEAP conda environment by just putting the relevant bits in a script (e.g., convert_dltdv.py) and running it (e.g., python convert_dltdv.py).

You'll also need to pip install sleap-io in the SLEAP conda environment if you want to run the code in the notebook without any changes.

Note: you should edit the script acco…

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@andrewdclark
Comment options

Answer selected by andrewdclark
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Help!
Labels
None yet
2 participants