05: Execute first three prepopulated cells
It creates an HDF5 data file. For now, it can live in git.
This commit is contained in:
@ -20,12 +20,12 @@
|
||||
},
|
||||
{
|
||||
"cell_type": "code",
|
||||
"execution_count": null,
|
||||
"execution_count": 1,
|
||||
"id": "f6c9a3b3",
|
||||
"metadata": {},
|
||||
"outputs": [],
|
||||
"source": [
|
||||
"NAME = \"\"\n",
|
||||
"NAME = \"Kees van Kempen\"\n",
|
||||
"NAMES_OF_COLLABORATORS = \"\""
|
||||
]
|
||||
},
|
||||
@ -62,7 +62,7 @@
|
||||
},
|
||||
{
|
||||
"cell_type": "code",
|
||||
"execution_count": null,
|
||||
"execution_count": 2,
|
||||
"id": "032f87d0",
|
||||
"metadata": {
|
||||
"deletable": false,
|
||||
@ -226,7 +226,7 @@
|
||||
},
|
||||
{
|
||||
"cell_type": "code",
|
||||
"execution_count": null,
|
||||
"execution_count": 3,
|
||||
"id": "9df6a9cc",
|
||||
"metadata": {
|
||||
"deletable": false,
|
||||
@ -242,7 +242,22 @@
|
||||
"task": false
|
||||
}
|
||||
},
|
||||
"outputs": [],
|
||||
"outputs": [
|
||||
{
|
||||
"name": "stdout",
|
||||
"output_type": "stream",
|
||||
"text": [
|
||||
"testarray[325] = 0.6746227526601625\n",
|
||||
"f[\"test\"][325] = 0.6746227526601625\n",
|
||||
"test[325] = 0.6746227526601625\n",
|
||||
"f[\"test-plus-one\"][325] = 1.6746227526601625\n",
|
||||
"f[\"test\"][325] = 0.6746227526601625\n",
|
||||
"f[\"test-plus-one\"][325] = 1.6746227526601625\n",
|
||||
"data sets in test.hdf5: ['test', 'test-plus-one']\n",
|
||||
"data sets in test.hdf5: ['test-plus-one']\n"
|
||||
]
|
||||
}
|
||||
],
|
||||
"source": [
|
||||
"import h5py\n",
|
||||
"\n",
|
||||
@ -909,7 +924,7 @@
|
||||
],
|
||||
"metadata": {
|
||||
"kernelspec": {
|
||||
"display_name": "Python 3 (ipykernel)",
|
||||
"display_name": "Python 3",
|
||||
"language": "python",
|
||||
"name": "python3"
|
||||
},
|
||||
|
||||
BIN
Exercise sheet 5/test.hdf5
Normal file
BIN
Exercise sheet 5/test.hdf5
Normal file
Binary file not shown.
Reference in New Issue
Block a user