file_reader
This module’s scope covers abstractions related to file format readers.
-
class
tuna.io.file_reader.
file_reader
(*args, **kwargs)[source]
This class is responsible for abstracting common features of the file readers in a single code artifact.
It is not meant to be user-serviceable.
-
get_image_ndarray
()[source]
This method’s goal is to offer access to the array containing the image data.
Returns:
- self._image_ndarray : numpy.ndarray : defaults to None
Contains the current data for this reader. This should be set by derived classes.
-
is_readable
()[source]
This method’s goal is to check if the input file is readable.
Returns:
- self._is_readable : bool : defaults to False
True if the file is readable; should be set by derived classes.