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

Refactor attributes logic #73

Merged
merged 11 commits into from
Mar 11, 2024
Merged

Refactor attributes logic #73

merged 11 commits into from
Mar 11, 2024

Conversation

Vindaar
Copy link
Owner

@Vindaar Vindaar commented Mar 11, 2024

This PR refactors the attributes reading and writing logic. It brings it more in line with the dataset reading and writing logic.

In the future we might fully merge the two and take an argument for the correct HDF5 procedures to call. Meaning that the exact same logic is used to determine the way to prepare the data / convert it to Nim data from given HD5 data.

In addition this enhances the support for more complicated types supported in attributes. Also, all attributes and dataset types can now be read as JSON.

NOTE: For Nim versions below 2.0 it is advised to run with ORC. Otherwise you might get into trouble, due to bad destructor calls (some resources may be closed too early). Generally, while I'm not dropping support for 1.6 fully, it is definitely wonky. Test tWithDset ends up in some weird loop in the compiler on 1.6.18. So please just upgrade...

@Vindaar Vindaar merged commit 8fa5841 into master Mar 11, 2024
6 checks passed
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

Successfully merging this pull request may close these issues.

1 participant