Skip to content

Commit d1c1df4

Browse files
Merge pull request #260 from psl-schaefer/main
Update xenium.py, fix problem with hidden files in morphology_foucs direcory
2 parents a785803 + efc4129 commit d1c1df4

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/spatialdata_io/readers/xenium.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -286,7 +286,7 @@ def xenium(
286286
else:
287287
if morphology_focus:
288288
morphology_focus_dir = path / XeniumKeys.MORPHOLOGY_FOCUS_DIR
289-
files = {f for f in os.listdir(morphology_focus_dir) if f.endswith(".ome.tif")}
289+
files = {f for f in os.listdir(morphology_focus_dir) if f.endswith(".ome.tif") and not f.startswith("._")}
290290
if len(files) not in [1, 4]:
291291
raise ValueError(
292292
"Expected 1 (no segmentation kit) or 4 (segmentation kit) files in the morphology focus directory, "

0 commit comments

Comments
 (0)