Skip to content

registration failing when their are non-tiff files in the directory #154

@stephenlenzi

Description

@stephenlenzi

Describe the bug
Metadata in the image directory (in my case a couple of irrelevant .mat files) cause brainreg-napari to crash at the point of downsampling.

To Reproduce
Fresh installation of brainreg-napari in a clean env on linux, python 3.10. Drag directory containing all raw data images and also a couple of .mat files into napari. Choose parameters and hit run.

Expected behaviour

I would expect such an issue to crash earlier - when the data are loaded or immediately after hitting run, with a message specifically about unexpected files.

Log file

The error message I receive is:
"ValueError: Could not find a backend to open stitchedSize.mat`` with iomode ri`."

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    Status

    Backlog

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions