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

Creating datasets with variable length structures #623

Open
rschireman opened this issue Aug 30, 2022 · 0 comments
Open

Creating datasets with variable length structures #623

rschireman opened this issue Aug 30, 2022 · 0 comments

Comments

@rschireman
Copy link
Contributor

HI all,

I'm attempting to create a dataset with differing sizes of structures. In other words, one structure may have 48 atoms, 96 atoms, etc. I've packed it into an h5py file correctly (at least I hope I did), but I'm encountering an error when the species_to_indices function is utilized. The specific error is:

d['species'] = numpy.array([idx[s] for s in d['species']])
TypeError: unhashable type: 'numpy.ndarray'

I've attached the output of the h5dump command on my dataset.

test.zip

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

1 participant