Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Tell Bio-Formats to just open one file. #12

Open
tischi opened this issue Mar 3, 2023 · 5 comments
Open

Tell Bio-Formats to just open one file. #12

tischi opened this issue Mar 3, 2023 · 5 comments
Labels
enhancement New feature or request

Comments

@tischi
Copy link

tischi commented Mar 3, 2023

@NicoKiaru @joshmoore @dgault

Could we add an option to OpenerSettings to tell Bio-Formats to just open the one file that one gives the path to?

There is this issue that when one tries to open a TIFF file in a folder, then Bio-Formats tries to figure out whether this is part of some sequence and then always opens all the TIFF files that belong to that sequence. Sometimes this can be nice, but sometimes not.
It would really be great (for me essential) to control this.

@joshmoore
Copy link

@dgault can correct me, but from the Bio-Formats side, I don't think there's a general way to say, "only open this one file" unless you can pre-detect the file format. If you know for example that you want TIFFReader rather than OMETiffReader to get the "just open this file" behavior, then you can instantiate that rather than ImageReader which tries all possible readers (and/or use a readers.txt which does the same). I'm a OpenerSettings n00b but the only other option I can think of is to say, "don't use Bio-Formats".

@NicoKiaru
Copy link
Member

@tischi In opener settings, everything is done through bio-formats API (you can only specify a series). If there's a bio-formats way to do what you want, then we can try to implement it here. There's still an 'opt' field in opener-settings which can be potentially used for that. But we need a functioning code in bio-formats ( independently of bdv-image-loaders)

@tischi
Copy link
Author

tischi commented Mar 3, 2023

@NicoKiaru could we add an option useTIFFReader( boolean useTIFFReader )?

@NicoKiaru
Copy link
Member

NicoKiaru commented Mar 3, 2023

Maybe, but it's going to be a pain.

It involves changing:

and

And making sure the right parameter is passed to the right class and maintaining compatibility with already serialized datasets.

Can you just check whether it gives the right behaviour on one of your file ?

@tischi
Copy link
Author

tischi commented Mar 3, 2023

Can you just check whether it gives the right behaviour on one of your file ?

Good idea. I will do this and then get back to you.

@NicoKiaru NicoKiaru added the enhancement New feature or request label Jul 22, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

3 participants