We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 7012ec3 + c9d0725 commit fde618aCopy full SHA for fde618a
src/scportrait/pipeline/selection.py
@@ -170,7 +170,6 @@ def process(
170
)
171
172
segmentation = tempmmap.mmap_array_from_path(self.path_seg_mask)
173
- print(segmentation)
174
175
# create segmentation loader
176
sl = SegmentationLoader(
@@ -179,6 +178,13 @@ def process(
179
178
processes=self.config["processes_cell_sets"],
180
181
+ if len(segmentation.shape) == 3:
182
+ segmentation = np.squeeze(segmentation)
183
+ else:
184
+ raise ValueError(
185
+ f"Segmentation shape is not correct. Expected 2D array, got {segmentation.shape}"
186
+ )
187
+
188
# get shape collections
189
shape_collection = sl(segmentation, self.cell_sets, self.calibration_marker)
190
0 commit comments