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

Adding new embedding can fail when new embedding has as id the total number of embeddings #32

Closed
dweemx opened this issue Feb 4, 2021 · 1 comment
Assignees
Labels
bug Something isn't working

Comments

@dweemx
Copy link
Contributor

dweemx commented Feb 4, 2021

If there is already an embedding with an ID that is equal to the number of existing embeddings in the Embeddings_X slot then add_embedding will fail with:

Error in .subset2(public_bind_env, "initialize")(...) : HDF5-API Errors:
  error #000: H5Tcompound.c in H5Tinsert(): line 349: unable to insert member
class: HDF5
major: Datatype
minor: Unable to insert object

error #001: H5Tcompound.c in H5T__insert(): line 427: member name is not unique
class: HDF5
major: Datatype
minor: Unable to insert object
6.
.subset2(public_bind_env, "initialize")(...)
5.
H5T_COMPOUND$new(labels = names(x), dtypes = dtypes)
4.
guess_dtype(x = value) at loom.R#2265
3.
add_col_attr(loom = loom, key = key, value = value) at loom.R#2232
2.
update_col_attr(loom = loom, key = CA_EXTRA_EMBEDDINGS_NAMES[i],
                value = as.data.frame(x = ca.embeddings)) at loom.R#987
1.
add_embedding(loom = loom, embedding = umap, name = "UMAP")
@dweemx dweemx added the bug Something isn't working label Feb 4, 2021
@dweemx dweemx self-assigned this Feb 4, 2021
@dweemx dweemx closed this as completed in 662be36 Feb 4, 2021
@Elo-mars
Copy link

Hello,
I have exactly the same error (unable to insert member and member name is not unique) how do you fix that ? I reinstalled hdf5-1.10.1 and ScopeLoomR version 0.13.0. Thanks!

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

No branches or pull requests

2 participants