You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When writing group- or array-level meta data, bytes are cast to TILEDB_STRING_UTF8 instead of TILEDB_STRING_ASCII, resulting in the meta data being read back as str instead of bytes
>>># Write metadata as both `str` and `bytes`>>>grp=tiledbsoma.Collection.create("temp")
>>>grp.metadata["str"] ="test_string">>>grp.metadata["bytes"] =b"test_bytes">>>grp.close()
>>># Read it back>>>grp=tiledbsoma.Collection.open("temp")
>>> {x: type(grp.metadata[x]) forxin ("str", "bytes")}
{'str': <class'str'>, 'bytes': <class'str'>}
The text was updated successfully, but these errors were encountered:
When writing group- or array-level meta data,
bytes
are cast toTILEDB_STRING_UTF8
instead ofTILEDB_STRING_ASCII
, resulting in the meta data being read back asstr
instead ofbytes
The text was updated successfully, but these errors were encountered: