From 89b7913ec2741ba0c4b252ee237e52eeee553bbd Mon Sep 17 00:00:00 2001
From: Philipp Schmidt <philipp.schmidt@xfel.eu>
Date: Wed, 14 Jun 2023 14:14:16 +0200
Subject: [PATCH] Fix types of Timepix notebook arguments to make update script
 work properly

---
 notebooks/Timepix/Compute_Timepix_Event_Centroids.ipynb | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/notebooks/Timepix/Compute_Timepix_Event_Centroids.ipynb b/notebooks/Timepix/Compute_Timepix_Event_Centroids.ipynb
index 6fba05e2c..b192ea856 100755
--- a/notebooks/Timepix/Compute_Timepix_Event_Centroids.ipynb
+++ b/notebooks/Timepix/Compute_Timepix_Event_Centroids.ipynb
@@ -37,7 +37,7 @@
     "dataset_compression = 'gzip'  # HDF compression method.\n",
     "dataset_compression_opts = 3  # HDF GZIP compression level.\n",
     "\n",
-    "clustering_epsilon = 2  # centroiding: The maximum distance between two samples for one to be considered as in the neighborhood of the other\n",
+    "clustering_epsilon = 2.0  # centroiding: The maximum distance between two samples for one to be considered as in the neighborhood of the other\n",
     "clustering_tof_scale = 1e7  # centroiding: Scaling factor for the ToA axis so that the epsilon parameter in DB scan works in all 3 dimensions\n",
     "clustering_min_samples = 2  # centroiding: minimum number of samples necessary for a cluster\n",
     "clustering_n_jobs = 1  # centroiding: (DBSCAN) The number of parallel jobs to run.\n",
@@ -332,7 +332,7 @@
     "    'clustering.epsilon': (np.float64, float(clustering_epsilon)),\n",
     "    'clustering.tof_scale': (np.float64, float(clustering_tof_scale)),\n",
     "    'clustering.min_samples': (np.int16, int(clustering_min_samples)),\n",
-    "    'threshold_tot': (np.float64, float(threshold_tot)),\n",
+    "    'threshold_tot': (np.int16, int(threshold_tot)),\n",
     "}\n",
     "\n",
     "centroid_stats_template = {\n",
-- 
GitLab