A minor code formatting suggestion first
Possibly the < and > characters are getting left out when you publish the post.
Might I suggest using the ` character while writing inline code:
or ` INLINE CODE `
This might be causing some confusion as to what code you actually tried.
Next, to answer the load from numPy to SciDB query
I made up a ipython Notebook demo to answer your question. See here:
Basically, you were doing almost all things correctly. But when you wrote:
It did not actually evaluate the
store query -- just keeps it stored for future evaluation (see http://scidb-py.readthedocs.org/en/stable/operations.html#lazy-evaluation).
Instead, what I show in my example is:
sdb.query("store(" + temp.name + ", " + Array.name + ")")
This actually runs the copy command.
There is one obvious inefficiency here. We store in a temp array, and then copy it to the final desired array. It would be much better to just rename the attributes of the dynamically generated array to your desired names. I will show that example in an updated version of the notebook.
Other discussions on this thread
@plumber brings up other points about best ways to load data into SciDB. He is absolutely right. I just wanted to solve the initial question of loading
numpy arrays into SciDB.