jungmannlab / picasso

A collection of tools for painting super-resolution images

Home Page:https://picassosr.readthedocs.io/en/latest/?badge=latest

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Add support for tiff file names

ajasja opened this issue · comments

Picasso is great! However, our instrument saves .tiff files instead of .tif.
If we just rename them from tiff -> tif everything works correctly.

Would it be possible to change line

elif ext == ".tif":

From
elif ext == ".tif":
to
elif (ext == ".tif") or (ext == ".tiff"):

We could also print a waring Tiff files are not officially supported. But for us everything has been working great, just by renaming.

I'm happy to do a PR if you would be willing to entertain this idea.

  • Picasso version: 0.6.6
  • Python version: 3.10
  • Operating System: Windows

Description

Trying to load a tiff file from a LUMICSK C-TRAP EDGE 350

Hi Ajasja,

I will add this line of code. The next release should be ready the next week.

Bests,
Rafal

Thank you!