Skip to content

Conversation

@allevitan
Copy link
Collaborator

.h5 files saved by "nested_dict_to_h5" would throw an error when "h5_to_nested_dict" was used to read them... it was coming from something to do with how strings were saved and loaded.

I pushed a fix to the code, and I also updated the documentation and added test coverage for these functions and two related functions for nested dicts, nested_dict_to_numpy and nested_dict_to_torch.

@allevitan allevitan added the bug Something isn't working label Mar 18, 2025
Copy link
Collaborator

@yoshikisd yoshikisd left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Overall I think this looks good. Pytests are running fine on my machine. There's a few minor typos on the code description (e.g., the name of the return variable is different from what's on the description) that should be corrected before merging to avoid confusion later on.

I have also included a few optional suggestions to make the code more succinct.

Copy link
Collaborator

@yoshikisd yoshikisd left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This looks good to me. Pytests are still working on my machine. Let's merge this.

@yoshikisd yoshikisd merged commit 1c434dd into master Mar 20, 2025
6 checks passed
@yoshikisd yoshikisd deleted the bugfix/h5_strings branch March 20, 2025 19:03
@yoshikisd yoshikisd restored the bugfix/h5_strings branch March 20, 2025 19:03
@allevitan allevitan deleted the bugfix/h5_strings branch March 20, 2025 23:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants