ATTPC / Spyral

A Python analysis library for AT-TPC data
GNU General Public License v3.0
2 stars 3 forks source link

Bug in Cluster.drop_outliers when updating label array #131

Closed gwm17 closed 1 month ago

gwm17 commented 2 months ago

Mask selects points not labeled noise, and we then use this to try to find noise points. Should be

mask = result < 0
self.data = self.data[~mask]  # label=-1 is an outlier
return np.flatnonzero(mask)

Note the negation.

gwm17 commented 1 month ago

Done v0.8.0