Skip to content

Commit

Permalink
Have bioformats ignore ndpi files.
Browse files Browse the repository at this point in the history
  • Loading branch information
manthey committed Sep 10, 2021
1 parent 4e1bb5b commit 3dadf3b
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
4 changes: 2 additions & 2 deletions docs/source/config_options.rst
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ Configuration parameters:

- ``max_small_image_size``: The PIL tilesource is used for small images if they are no more than this many pixels along their maximum dimension.

- ``source_bioformats_ignored_extensions``: The bioformats tilesource can read some files that are better read by other tilesources or ignored. Since reading these files is suboptimal, by default files with particular extensions are ignored by the bioformats tilesource. This defaults to ``.jpg,.jpeg,.jpe,.png,.tif,.tiff``.
- ``source_bioformats_ignored_extensions``: The bioformats tilesource can read some files that are better read by other tilesources or ignored. Since reading these files is suboptimal, by default files with particular extensions are ignored by the bioformats tilesource. This defaults to ``.jpg,.jpeg,.jpe,.png,.tif,.tiff,.ndpi``.


Configuration from Python
Expand Down Expand Up @@ -60,7 +60,7 @@ For the Girder plugin, these can also be set in the ``girder.cfg`` file in a ``l
max_small_image_size = 4096
# The bioformats tilesource won't read files that end in a comma-separated
# list of extensions
source_bioformats_ignored_extensions = '.jpg,.jpeg,.jpe,.png,.tif,.tiff'
source_bioformats_ignored_extensions = '.jpg,.jpeg,.jpe,.png,.tif,.tiff,.ndpi'

Logging from Python
-------------------
Expand Down
3 changes: 2 additions & 1 deletion sources/bioformats/large_image_source_bioformats/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,8 @@
_openImages = []


config.ConfigValues['source_bioformats_ignored_extensions'] = '.jpg,.jpeg,.jpe,.png,.tif,.tiff'
config.ConfigValues['source_bioformats_ignored_extensions'] = \
'.jpg,.jpeg,.jpe,.png,.tif,.tiff,.ndpi'


def _monitor_thread():
Expand Down

0 comments on commit 3dadf3b

Please sign in to comment.