We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 809b71b commit 2df7c55Copy full SHA for 2df7c55
src/pyxalign/io/loaders/xrf/utils.py
@@ -76,7 +76,7 @@ def remove_inconsistent_sizes(standard_data: StandardData):
76
# Get the count per each shape
77
n_arrays_per_shape = []
78
for shape in set(shapes):
79
- n_arrays_per_shape += [shape == x for x in shapes]
+ n_arrays_per_shape += [np.sum([shape == x for x in shapes])]
80
idx = np.argmax(n_arrays_per_shape)
81
# Remove data with sizes that don't match
82
scan_numbers = np.array(list(standard_data.projections.keys()), dtype=int)
0 commit comments