diff --git a/notebooks/AGIPD/Characterize_AGIPD_Gain_Darks_NBC.ipynb b/notebooks/AGIPD/Characterize_AGIPD_Gain_Darks_NBC.ipynb index c15bbfba5714d4bc348a866aab35bf2273e3a140..dfbeb5b60f3170ab5b819a09660a4a1b3d181fa7 100644 --- a/notebooks/AGIPD/Characterize_AGIPD_Gain_Darks_NBC.ipynb +++ b/notebooks/AGIPD/Characterize_AGIPD_Gain_Darks_NBC.ipynb @@ -393,9 +393,15 @@ " bp[(noise < local_thresholds_noise_hard[0]) | (noise > local_thresholds_noise_hard[1])] |= BadPixels.NOISE_OUT_OF_THRESHOLD.value\n", " bp[~np.isfinite(noise)] |= BadPixels.OFFSET_NOISE_EVAL_ERROR.value\n", "\n", - " return offset, noise, gains, gains_std, gg, bp, num_cells, local_acq_rate\n", - "\n", - "\n", + " return offset, noise, gains, gains_std, gg, bp, num_cells, local_acq_rate" + ] + }, + { + "cell_type": "code", + "execution_count": null, + "metadata": {}, + "outputs": [], + "source": [ "offset_g = OrderedDict()\n", "noise_g = OrderedDict()\n", "gain_g = OrderedDict()\n", @@ -494,11 +500,12 @@ "res = OrderedDict()\n", "for i in modules:\n", " qm = index_to_qm(i)\n", - " res[qm] = {'Offset': offset_g[qm],\n", - " 'Noise': noise_g[qm],\n", - " 'ThresholdsDark': thresholds_g[qm],\n", - " 'BadPixelsDark': badpix_g[qm] \n", - " }" + " res[qm] = {\n", + " 'Offset': offset_g[qm],\n", + " 'Noise': noise_g[qm],\n", + " 'ThresholdsDark': thresholds_g[qm],\n", + " 'BadPixelsDark': badpix_g[qm]\n", + " }" ] }, { @@ -525,8 +532,10 @@ "qm_dict = OrderedDict()\n", "for i, k_da in zip(modules, karabo_da):\n", " qm = index_to_qm(i)\n", - " qm_dict[qm] = {\"karabo_da\": k_da,\n", - " \"db_module\": \"\"}" + " qm_dict[qm] = {\n", + " \"karabo_da\": k_da,\n", + " \"db_module\": \"\"\n", + " }" ] }, {