Преглед на файлове

converted .h5 file to . nix using nixio version 1.5.0

Moritz-Alexander-Kern преди 2 години
родител
ревизия
87a61db4d1

BIN
tutorials/tutorial_unitary_event_analysis/data/dataset-1.nix


+ 29 - 8
tutorials/tutorial_unitary_event_analysis/src/conversion_hd5_to_nix.ipynb

@@ -49,8 +49,8 @@
      "text": [
       "  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current\n",
       "                                 Dload  Upload   Total   Spent    Left  Speed\n",
-      "100   369  100   369    0     0    891      0 --:--:-- --:--:-- --:--:--   891\n",
-      "100  289k    0  289k    0     0   159k      0 --:--:--  0:00:01 --:--:-- 1452k\n"
+      "100   369  100   369    0     0   6049      0 --:--:-- --:--:-- --:--:--  6049\n",
+      "100  289k    0  289k    0     0   232k      0 --:--:--  0:00:01 --:--:--  294k\n"
      ]
     }
    ],
@@ -76,9 +76,9 @@
      "name": "stderr",
      "output_type": "stream",
      "text": [
-      "/home/kern/miniconda3/envs/elephant/lib/python3.9/site-packages/neo/io/hdf5io.py:63: FutureWarning: NeoHdf5IO will be removed in the next release of Neo. If you still have data in this format, we recommend saving it using NixIO which is also based on HDF5.\n",
+      "/home/kern/miniconda3/envs/elephant_nixio/lib/python3.9/site-packages/neo/io/hdf5io.py:63: FutureWarning: NeoHdf5IO will be removed in the next release of Neo. If you still have data in this format, we recommend saving it using NixIO which is also based on HDF5.\n",
       "  warn(warning_msg, FutureWarning)\n",
-      "/home/kern/miniconda3/envs/elephant/lib/python3.9/site-packages/numpy/core/shape_base.py:121: VisibleDeprecationWarning: Creating an ndarray from ragged nested sequences (which is a list-or-tuple of lists-or-tuples-or ndarrays with different lengths or shapes) is deprecated. If you meant to do this, you must specify 'dtype=object' when creating the ndarray.\n",
+      "/home/kern/miniconda3/envs/elephant_nixio/lib/python3.9/site-packages/numpy/core/shape_base.py:121: VisibleDeprecationWarning: Creating an ndarray from ragged nested sequences (which is a list-or-tuple of lists-or-tuples-or ndarrays with different lengths or shapes) is deprecated. If you meant to do this, you must specify 'dtype=object' when creating the ndarray.\n",
       "  ary = asanyarray(ary)\n"
      ]
     }
@@ -117,7 +117,7 @@
   },
   {
    "cell_type": "code",
-   "execution_count": 12,
+   "execution_count": 5,
    "id": "2a06477e",
    "metadata": {},
    "outputs": [],
@@ -126,13 +126,34 @@
     "with neo.io.NixIO(filename, 'ow') as io:\n",
     "    io.write_block(blk)"
    ]
+  },
+  {
+   "cell_type": "code",
+   "execution_count": 6,
+   "id": "3502e50c-919e-49f8-b38c-629978d1d246",
+   "metadata": {},
+   "outputs": [
+    {
+     "name": "stdout",
+     "output_type": "stream",
+     "text": [
+      "total 2,0M\n",
+      "-rw-rw-r-- 1 kern kern 4,7K Dez 13 15:48 conversion_hd5_to_nix.ipynb\n",
+      "-rw-rw-r-- 1 kern kern 289K Dez 13 15:53 dataset-1.h5\n",
+      "-rw-rw-r-- 1 kern kern 1,7M Dez 13 15:53 dataset-1.nix\n"
+     ]
+    }
+   ],
+   "source": [
+    "!ls -lh "
+   ]
   }
  ],
  "metadata": {
   "kernelspec": {
-   "display_name": "elephant_old",
+   "display_name": "elephant_nixio",
    "language": "python",
-   "name": "elephant_old"
+   "name": "elephant_nixio"
   },
   "language_info": {
    "codemirror_mode": {
@@ -144,7 +165,7 @@
    "name": "python",
    "nbconvert_exporter": "python",
    "pygments_lexer": "ipython3",
-   "version": "3.9.6"
+   "version": "3.9.7"
   }
  },
  "nbformat": 4,