minor fixes in clusterfilter
@@ -118,6 +118,11 @@ def _clusterfilter(files, clusterfile, parameter, minval, maxval):
clusters = io.load_clusters(clusterfile)
try:
selector = (clusters[parameter]>minval) & (clusters[parameter]<maxval)
+ if np.sum(selector)== 0:
+ print('Error: No localizations in range. Filtering aborted.')
+ elif np.sum(selector) == len(selector):
+ print('Error: All localizations in range. Filtering aborted.')
+ else:
print('Isolating locs.. Step 1: in range')
groups = clusters['groups'][selector]
first = True
