diff --git a/notebooks/LPD/Characterize_LPD_GAIN_CI_per_pixel_NBC.ipynb b/notebooks/LPD/Characterize_LPD_GAIN_CI_per_pixel_NBC.ipynb index e52ca2afaefe83ddadd28dfd177a3111c82b071e..0cdc02eb4d01c4375a0156c4ca168c9d9a390cdd 100644 --- a/notebooks/LPD/Characterize_LPD_GAIN_CI_per_pixel_NBC.ipynb +++ b/notebooks/LPD/Characterize_LPD_GAIN_CI_per_pixel_NBC.ipynb @@ -342,7 +342,7 @@ " def read_fun(filename, channel):\n", " \"\"\" A reader function used by pyDetLib\n", " \"\"\"\n", - " infile = h5py.File(filename, \"r\", driver=\"core\")\n", + " infile = h5py.File(filename, \"r\")\n", " imarr = infile[\"/data\".format(channel)]\n", " im = np.array(imarr)\n", " infile.close()\n", @@ -1515,7 +1515,7 @@ " def read_fun(filename, channel):\n", " \"\"\" A reader function used by pyDetLib\n", " \"\"\"\n", - " infile = h5py.File(filename, \"r\", driver=\"core\")\n", + " infile = h5py.File(filename, \"r\")\n", " imarr = infile[\"/data\".format(channel)]\n", " im = np.array(imarr)\n", " infile.close()\n", diff --git a/notebooks/LPD/LPD_Correct_and_Verify.ipynb b/notebooks/LPD/LPD_Correct_and_Verify.ipynb index 4c2fafc5287430d8d5983632877d9e8f4db451a6..c4ec0d78d9eda6c9920eabab25efa03b2ae6a84b 100644 --- a/notebooks/LPD/LPD_Correct_and_Verify.ipynb +++ b/notebooks/LPD/LPD_Correct_and_Verify.ipynb @@ -269,7 +269,7 @@ " reason = \"\"\n", " filename, filename_out, channel, karabo_da, qm = inp\n", "\n", - " infile = h5py.File(filename, \"r\", driver=\"core\")\n", + " infile = h5py.File(filename, \"r\")\n", " outfile = h5py.File(filename_out, \"w\")\n", " \n", " # LPD correction requires path without the leading \"/\"\"\n", diff --git a/notebooks/LPD/LPD_FlatField_Radial_per_pixel_CI_NBC.ipynb b/notebooks/LPD/LPD_FlatField_Radial_per_pixel_CI_NBC.ipynb index 33522e672c31ec05bb170c2e27b21e4f7514140f..4075ffbfa82b19f18b8fe8b928064952a879343e 100644 --- a/notebooks/LPD/LPD_FlatField_Radial_per_pixel_CI_NBC.ipynb +++ b/notebooks/LPD/LPD_FlatField_Radial_per_pixel_CI_NBC.ipynb @@ -244,7 +244,7 @@ " \n", " if rf is not None:\n", " \n", - " infile = h5py.File(rf, \"r\", driver=\"core\")\n", + " infile = h5py.File(rf, \"r\")\n", " raw.append(np.array(infile[\"/INSTRUMENT/FXE_DET_LPD1M-1/DET/{}CH0:xtdf/image/data\".format(i)][:max_images,0,...]))\n", " infile.close()\n", "\n", diff --git a/notebooks/LPD/playground/Characterize_LPD_GAIN_CI.ipynb b/notebooks/LPD/playground/Characterize_LPD_GAIN_CI.ipynb index 523b9f9d11d92ec57046cdff45d24d91730cbd32..1e04f5f3785ce96d766cda73155b8bd63e113538 100644 --- a/notebooks/LPD/playground/Characterize_LPD_GAIN_CI.ipynb +++ b/notebooks/LPD/playground/Characterize_LPD_GAIN_CI.ipynb @@ -340,7 +340,7 @@ " def read_fun(filename, channel):\n", " \"\"\" A reader function used by pyDetLib\n", " \"\"\"\n", - " infile = h5py.File(filename, \"r\", driver=\"core\")\n", + " infile = h5py.File(filename, \"r\")\n", " imarr = infile[\"/data\".format(channel)]\n", " im = np.array(imarr)\n", " infile.close()\n", @@ -1049,7 +1049,7 @@ " def read_fun(filename, channel):\n", " \"\"\" A reader function used by pyDetLib\n", " \"\"\"\n", - " infile = h5py.File(filename, \"r\", driver=\"core\")\n", + " infile = h5py.File(filename, \"r\")\n", " imarr = infile[\"/data\".format(channel)]\n", " im = np.array(imarr)\n", " infile.close()\n", diff --git a/notebooks/LPD/playground/LPDChar_Darks.ipynb b/notebooks/LPD/playground/LPDChar_Darks.ipynb index 73b4eb0fd0775636315f07d3ac7957703cfbd780..919fa13cb1fa7a7b8b44c729957d46fd937d8a2f 100644 --- a/notebooks/LPD/playground/LPDChar_Darks.ipynb +++ b/notebooks/LPD/playground/LPDChar_Darks.ipynb @@ -331,7 +331,7 @@ " filename, filename_out, channel = inp\n", " thresholds_offset_hard, thresholds_offset_sigma, thresholds_noise_hard, thresholds_noise_sigma = bp_thresh \n", "\n", - " infile = h5py.File(filename, \"r\", driver=\"core\")\n", + " infile = h5py.File(filename, \"r\")\n", " im = np.array(infile[\"/INSTRUMENT/FXE_DET_LPD1M-1/DET/{}CH0:xtdf/image/data\".format(channel)][skip_first_ntrains*cells:,...])\n", " cellid = np.squeeze(np.array(infile[\"/INSTRUMENT/FXE_DET_LPD1M-1/DET/{}CH0:xtdf/image/cellId\".format(channel)][skip_first_ntrains*cells:,...]))\n", " infile.close()\n", diff --git a/notebooks/LPD/playground/LPD_Batch_Cal.ipynb b/notebooks/LPD/playground/LPD_Batch_Cal.ipynb index 1782700e69188649923c9fe29c53dfefb9a715cf..7d83accb6ca859a344fb533b3b93dd815705b1d8 100644 --- a/notebooks/LPD/playground/LPD_Batch_Cal.ipynb +++ b/notebooks/LPD/playground/LPD_Batch_Cal.ipynb @@ -245,7 +245,7 @@ " \n", " filename, filename_out, channel, offset, rel_gain, mask, flatfield = inp\n", "\n", - " infile = h5py.File(filename, \"r\", driver=\"core\")\n", + " infile = h5py.File(filename, \"r\")\n", " im = np.array(infile[\"/INSTRUMENT/FXE_DET_LPD1M-1/DET/{}CH0:xtdf/image/data\".format(channel)][:10*cells, ...])\n", " cells = np.squeeze(np.array(infile[\"/INSTRUMENT/FXE_DET_LPD1M-1/DET/{}CH0:xtdf/image/cellId\".format(channel)][:10*cells, ...]))\n", "\n", @@ -253,7 +253,7 @@ " dont_copy = [\"INSTRUMENT/FXE_DET_LPD1M-1/DET/{}CH0:xtdf/image/{}\".format(channel, do)\n", " for do in dont_copy]\n", "\n", - " outfile = h5py.File(filename_out, \"w\", driver=\"core\")\n", + " outfile = h5py.File(filename_out, \"w\")\n", " def visitor(k, item):\n", " if k not in dont_copy:\n", " if isinstance(item, h5py.Group):\n", diff --git a/notebooks/LPD/playground/LPD_FlatField_Radial.ipynb b/notebooks/LPD/playground/LPD_FlatField_Radial.ipynb index 732ce8cd96001aa22317c3c4071bd01383302256..6689f001f82bc9bd377cde1d3321b97b86e1e6dc 100644 --- a/notebooks/LPD/playground/LPD_FlatField_Radial.ipynb +++ b/notebooks/LPD/playground/LPD_FlatField_Radial.ipynb @@ -299,7 +299,7 @@ " \n", " filename, filename_out, channel, offset, rel_gain, mask = inp\n", "\n", - " infile = h5py.File(filename, \"r\", driver=\"core\")\n", + " infile = h5py.File(filename, \"r\")\n", " count = np.squeeze(infile[\"/INDEX/FXE_DET_LPD1M-1/DET/{}CH0:xtdf/image/count\".format(channel)])\n", " first = np.squeeze(infile[\"/INDEX/FXE_DET_LPD1M-1/DET/{}CH0:xtdf/image/first\".format(channel)])\n", " last_index = int(first[count != 0][-1]+count[count != 0][-1])\n", @@ -313,7 +313,7 @@ " dont_copy = [\"INSTRUMENT/FXE_DET_LPD1M-1/DET/{}CH0:xtdf/image/{}\".format(channel, do)\n", " for do in dont_copy]\n", "\n", - " outfile = h5py.File(filename_out, \"w\", driver=\"core\")\n", + " outfile = h5py.File(filename_out, \"w\")\n", " def visitor(k, item):\n", " if k not in dont_copy:\n", " if isinstance(item, h5py.Group):\n",