Vindaar / nimhdf5

Wrapper and some simple high-level bindings for the HDF5 library for the Nim language
MIT License
28 stars 2 forks source link

Fix copy attributes in certain circumstances #33

Closed Vindaar closed 4 years ago

Vindaar commented 4 years ago

The implementation of copy_attributes so far assumed that the attr_tab was already filled with opened attributes.

However, when just opening a file in a session without having created the attributes the copy operation won't do anything. So instead we now read all attributes in the proc, copy each and then close each attribute again.

Also contains some fixes for string conversions.