arctic
arctic copied to clipboard
Multiple appends with ndarray data raises UnhandledDtypeException
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.
Still valid, just checked, will take a quick look