Skip to content
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

Order in method get_ref_annotation_data_for_tier() #4

Closed
bertoky opened this issue Jul 31, 2015 · 1 comment
Closed

Order in method get_ref_annotation_data_for_tier() #4

bertoky opened this issue Jul 31, 2015 · 1 comment

Comments

@bertoky
Copy link

bertoky commented Jul 31, 2015

Hi again,

when I use the method get_annotation_data_for_tier() I get the information in the same order that it is in the eaf file whereas when I use the method get_ref_annotation_data_for_tier() I don't get the information in the same order that it is in the eaf file so how is the order of getting this information?

Thank you so much again.

@dopefishh
Copy link
Owner

Because the data is stored in a dictionary the data is inherently unordered. Because of the structure of the returned data you can easily sort the data. Either in place using the your_list.sort() function of make a new list from it by wrapping in in sorted(your_list).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants