diff --git a/notebooks/Jungfrau/Jungfrau_Gain_Correct_and_Verify_NBC.ipynb b/notebooks/Jungfrau/Jungfrau_Gain_Correct_and_Verify_NBC.ipynb
index a5f9a894ab464fb0a81b32662591578d23e299b0..55d1a9ec690cb59c1cf105479516727d62c767d0 100644
--- a/notebooks/Jungfrau/Jungfrau_Gain_Correct_and_Verify_NBC.ipynb
+++ b/notebooks/Jungfrau/Jungfrau_Gain_Correct_and_Verify_NBC.ipynb
@@ -76,7 +76,7 @@
     "import sys\n",
     "import warnings\n",
     "from functools import partial\n",
-    "from logging import warn\n",
+    "from logging import warning\n",
     "from pathlib import Path\n",
     "\n",
     "import h5py\n",
@@ -504,7 +504,7 @@
     "        # Raise a WARNING if this sequence has no trains to correct.\n",
     "        # Otherwise, print number of trains with no data.\n",
     "        if corr_ntrains == 0:\n",
-    "            warn(f\"No trains to correct for {sequence_file.name}: \"\n",
+    "            warning(f\"No trains to correct for {sequence_file.name}: \"\n",
     "                 \"Skipping the processing of this file.\")\n",
     "            empty_seq += 1\n",
     "            continue\n",
diff --git a/src/cal_tools/step_timing.py b/src/cal_tools/step_timing.py
index e95362444b7b315c758d32eb8b2bb8621b3c56ab..a68587dcbac336e9a85f7c1fafa5d44d9c823c11 100644
--- a/src/cal_tools/step_timing.py
+++ b/src/cal_tools/step_timing.py
@@ -29,6 +29,8 @@ class StepTimer:
         """Wall time from 1st call to start() to last start() or done_step()"""
         if self.t_latest is not None and self.t0 is not None:
             return self.t_latest - self.t0
+        else:
+            return 0
 
     def print_summary(self):
         """Show mean & std for each step"""