Skip to content

'None' track in exported .h5 file #2007

Answered by roomrys
skyshi0 asked this question in Help!
Discussion options

You must be logged in to vote

Hello,

I am curious what error message you are getting when you try

locations = f["tracks"][:].T

?

The "tracks" key just has a big numpy stored of shape # frames by # nodes by 2 by # tracks. So if you have just a single animal, we expect the numpy to have shape 1 at the end - which is still able to be transposed per the example below:

In [4]: np.random.rand(4,3,2,1).shape
Out[4]: (4, 3, 2, 1)

In [5]: np.random.rand(4,3,2,1).T.shape
Out[5]: (1, 2, 3, 4)

.

By the way, if you are missing pose data, this is likely due to accidentally having a track set on a pose somewhere, so it is best to Tracks > Delete Multiple > All for single animal projects before exporting to an analysis file.

Thanks,

Replies: 2 comments 2 replies

Comment options

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

Comment options

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

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