Skip to content

Commit

Permalink
added docstrings to helper functions in tiffimagingextractors
Browse files Browse the repository at this point in the history
  • Loading branch information
pauladkisson committed Sep 5, 2023
1 parent 6a1a83f commit c3529d6
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -24,13 +24,15 @@


def filter_tiff_tag_warnings(record):
"""Filter out the warning messages from tifffile package."""
return not record.msg.startswith("<tifffile.TiffTag 270 @42054>")


logging.getLogger("tifffile.tifffile").addFilter(filter_tiff_tag_warnings)


def _get_tiff_reader() -> ModuleType:
"""Import the tifffile package and return the module."""
return get_package(package_name="tifffile", installation_instructions="pip install tifffile")


Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@


def _get_scanimage_reader() -> type:
"""Import the scanimage-tiff-reader package and return the ScanImageTiffReader class."""
return get_package(
package_name="ScanImageTiffReader", installation_instructions="pip install scanimage-tiff-reader"
).ScanImageTiffReader
Expand Down

0 comments on commit c3529d6

Please sign in to comment.