arctic icon indicating copy to clipboard operation
arctic copied to clipboard

Multiple appends with ndarray data raises UnhandledDtypeException

Open aflag opened this issue 7 years ago • 1 comments
trafficstars

Arctic Version

1.61

Arctic Store

VersionStore

Platform and version

Python 2.7.11

Description of problem and/or code sample that reproduces the issue

This code raises UnhandledDtypeException:

import numpy as np

from arctic import Arctic, VERSION_STORE

library_name = "mytest"
key = "mykey"

arctic = Arctic(mongo_host="127.0.0.1:27017")
arctic.initialize_library(library_name, VERSION_STORE)

vstore = arctic[library_name]

data = np.random.rand(1, 10)
vstore.write(key, data)
vstore.append(key, data)
vstore.append(key, data)

The append method works with one-dimensional arrays (ie. if we used rand(10) instead of rand(1, 10)). However, it doesn't properly keep track of the array shape as new dimensions are introduced.

aflag avatar Feb 28 '18 16:02 aflag

Still valid, just checked, will take a quick look

shashank88 avatar Jul 05 '19 17:07 shashank88