SciFiReaders.auto_reader.AutoReader#
- class SciFiReaders.auto_reader.AutoReader(file_path, *args, **kwargs)[source]#
Bases:
ReaderSelects the concrete SciFiReaders reader for a file and delegates read() to it.
- Parameters:
file_path (str) – Path to the file that needs to be read
Notes
This method will check to make sure that the provided file_path is indeed a string and a valid file path.
Consider calling
can_read()within__init__()for validating the provided file
- Raises:
Methods
can_readreadReturn (selected reader class, list of all matching reader classes).