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

add iterators for groups, attributes #2

Open
Vindaar opened this issue Jan 18, 2018 · 2 comments
Open

add iterators for groups, attributes #2

Vindaar opened this issue Jan 18, 2018 · 2 comments
Labels

Comments

@Vindaar
Copy link
Owner

Vindaar commented Jan 18, 2018

Have some file aware iterators for groups and attributes.

While groups are stored in a table, the current way to iterate over the keys of the table sort of works, but is not very nice. This requires the user to call the visitFile proc before hand, which should of course not be necessary.

Iterator should thus check whether file has been visited already (add visited flag to H5FileObj maybe?), and if not perform visit to file before yielding group names etc.

@Vindaar
Copy link
Owner Author

Vindaar commented Jan 27, 2018

Commits 3a49372 and 4e8c83a add basic iterators for groups and datasets within a file.

Iterator for attributes still missing, plus dataset iteration is still limited to all datasets within a subgroup (without support for recursive iterations over subgroups of the group being iterated over).

@Vindaar
Copy link
Owner Author

Vindaar commented Nov 17, 2019

#32 also adds JSON based iterators called attrsJson. The name was chosen to not confuse users about what happens.

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

No branches or pull requests

1 participant