Skip to content
This repository was archived by the owner on Dec 11, 2023. It is now read-only.
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 7 additions & 1 deletion bcolz/carray_ext.pyx
Original file line number Diff line number Diff line change
Expand Up @@ -1378,7 +1378,13 @@ cdef class carray:
storagef = os.path.join(metadir, STORAGE_FILE)
with open(storagef, 'rb') as storagefh:
data = json.loads(storagefh.read().decode('ascii'))
dtype_ = np.dtype(data["dtype"])
# dtype_ = np.dtype(data["dtype"])
if data["dtype"][0] == "[" and data["dtype"][-1] == "]":
# read numpy array
import ast
dtype_ = np.dtype(ast.literal_eval(data["dtype"]))
else:
dtype_ = np.dtype(data["dtype"])
chunklen = data["chunklen"]
cparams = data["cparams"]
cname = cparams['cname'] if 'cname' in cparams else 'blosclz'
Expand Down
2 changes: 1 addition & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
@@ -1 +1 @@
numpy>=1.8
numpy==1.19.3