We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent c21eca4 commit da82837Copy full SHA for da82837
py4DSTEM/process/utils/cluster.py
@@ -162,7 +162,8 @@ def indexing_clusters_all(
162
sim_averaged = np.mean(self.similarity, axis=2)
163
164
# Assigning the background as 'counted'
165
- sim_averaged[~self.r_space_mask] = -1.0
+ if self.r_space_mask.dtype == bool:
166
+ sim_averaged[~self.r_space_mask] = -1.0
167
168
# color the pixels with the cluster index
169
self.cluster_map = -1 * np.ones(
0 commit comments