Commit 63c17b12 authored by Andrea Lorenzon's avatar Andrea Lorenzon 💬
Browse files

edited data import code

parent c5e022f5
......@@ -178,9 +178,10 @@ function clickHdf5Tree(data) {
var importCodeScript = "!pip install six==1.13.0 numpy==1.19.1 h5py==2.10.0\n"+
"import h5py\n" +
"filename, dataset = '"+pathFromTree+"', '"+hdf5PathFromTree+"'\n"+
"import numpy as np"
"filename, dataset = './data/"+pathFromTree+"', '"+hdf5PathFromTree+"'\n"+
"with h5py.File(filename, 'r') as hf:\n"+
" data = hf.get(dataset)\n "
" data = np.array(hf.get(dataset))\n "
$("#importCode code").html(importCodeScript);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment