Replies: 1 comment 1 reply
-
In this case, it looks like this will do it (the size of the md bytes, i.e. the `f4', 'i4', etc can be obtained from https://tskit.dev/tskit/docs/stable/metadata.html#numeric-and-boolean-types)
Is there a way of getting the numpy dtype from e.g. |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I have a simple struct schema for node metadata, with 3 numbers:
As I have 20 replicate tree sequences each with 2.8M nodes, it takes quite a while to extract this. I suspect I can treat all the bytes as a numpy record array, which will be fast. How do I do that, though?
Beta Was this translation helpful? Give feedback.
All reactions