From 75f16e87244130edcccc4ed4008e05fc876d9ae3 Mon Sep 17 00:00:00 2001
From: David Hammer <dhammer@mailbox.org>
Date: Thu, 29 Apr 2021 15:04:27 +0200
Subject: [PATCH] Isort

---
 .../AGIPD/Characterize_AGIPD_Gain_Darks_NBC.ipynb | 15 ++++++++-------
 notebooks/DSSC/Characterize_DSSC_Darks_NBC.ipynb  |  2 +-
 notebooks/LPD/LPDChar_Darks_NBC.ipynb             |  8 ++++----
 3 files changed, 13 insertions(+), 12 deletions(-)

diff --git a/notebooks/AGIPD/Characterize_AGIPD_Gain_Darks_NBC.ipynb b/notebooks/AGIPD/Characterize_AGIPD_Gain_Darks_NBC.ipynb
index d1e38174a..ba6b2ad5c 100644
--- a/notebooks/AGIPD/Characterize_AGIPD_Gain_Darks_NBC.ipynb
+++ b/notebooks/AGIPD/Characterize_AGIPD_Gain_Darks_NBC.ipynb
@@ -91,14 +91,13 @@
     "import yaml\n",
     "\n",
     "matplotlib.use('agg')\n",
-    "import matplotlib.pyplot as plt\n",
-    "from IPython.display import Latex, Markdown, display\n",
-    "\n",
-    "%matplotlib inline\n",
-    "\n",
     "import itertools\n",
     "import multiprocessing\n",
     "\n",
+    "import iCalibrationDB\n",
+    "import matplotlib.pyplot as plt\n",
+    "from IPython.display import Latex, Markdown, display\n",
+    "\n",
     "from cal_tools.agipdlib import (\n",
     "    get_acq_rate,\n",
     "    get_bias_voltage,\n",
@@ -124,7 +123,9 @@
     "    save_const_to_h5,\n",
     "    send_to_db,\n",
     ")\n",
-    "import iCalibrationDB"
+    "\n",
+    "%matplotlib inline\n",
+    "\n"
    ]
   },
   {
@@ -1080,7 +1081,7 @@
     "            else:\n",
     "                line.append(\"-\")\n",
     "        return line\n",
-    "    \n",
+    "\n",
     "\n",
     "    with multiprocessing.pool.ThreadPool(processes=multiprocessing.cpu_count() // len(constants_x_qms)) as pool:\n",
     "        rows = pool.map(compute_row, range(len(f_list)))\n",
diff --git a/notebooks/DSSC/Characterize_DSSC_Darks_NBC.ipynb b/notebooks/DSSC/Characterize_DSSC_Darks_NBC.ipynb
index 4b3f242c5..e1ef8825a 100644
--- a/notebooks/DSSC/Characterize_DSSC_Darks_NBC.ipynb
+++ b/notebooks/DSSC/Characterize_DSSC_Darks_NBC.ipynb
@@ -85,6 +85,7 @@
     "import numpy as np\n",
     "import tabulate\n",
     "import yaml\n",
+    "from iCalibrationDB import Conditions, Constants, Detectors, Versions\n",
     "\n",
     "from cal_tools.dssclib import get_dssc_ctrl_data, get_pulseid_checksum\n",
     "from cal_tools.enums import BadPixels\n",
@@ -107,7 +108,6 @@
     "    save_const_to_h5,\n",
     "    send_to_db,\n",
     ")\n",
-    "from iCalibrationDB import Conditions, Constants, Detectors, Versions\n",
     "\n",
     "view = Client(profile=cluster_profile)[:]\n",
     "view.use_dill()\n",
diff --git a/notebooks/LPD/LPDChar_Darks_NBC.ipynb b/notebooks/LPD/LPDChar_Darks_NBC.ipynb
index 4881f0738..d912c7c0a 100644
--- a/notebooks/LPD/LPDChar_Darks_NBC.ipynb
+++ b/notebooks/LPD/LPDChar_Darks_NBC.ipynb
@@ -89,6 +89,9 @@
     "import numpy as np\n",
     "import tabulate\n",
     "import yaml\n",
+    "from iCalibrationDB import Conditions, Constants, Detectors, Versions\n",
+    "from XFELDetAna.plotting.heatmap import heatmapPlot\n",
+    "from XFELDetAna.plotting.simpleplot import simplePlot\n",
     "\n",
     "from cal_tools.enums import BadPixels\n",
     "from cal_tools.plotting import (\n",
@@ -110,10 +113,7 @@
     "    run_prop_seq_from_path,\n",
     "    save_const_to_h5,\n",
     "    send_to_db,\n",
-    ")\n",
-    "from iCalibrationDB import Conditions, Constants, Detectors, Versions\n",
-    "from XFELDetAna.plotting.heatmap import heatmapPlot\n",
-    "from XFELDetAna.plotting.simpleplot import simplePlot"
+    ")"
    ]
   },
   {
-- 
GitLab