diff --git a/notebooks/Timepix/Compute_Timepix_Event_Centroids.ipynb b/notebooks/Timepix/Compute_Timepix_Event_Centroids.ipynb index 6fba05e2cdd8f111866a32f34cc359bb7bbaf5a8..b192ea856a73171725a4a9a1d30a91d29dcf1101 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",