the can_read() function in sidpy.Reader seems superfluous, tedious, and unnecessary. Whether or not a Reader can read a file can easily be determined by whether __init__ throws an exception. If __init__ did not throw an exception, it is capable of reading that file. This will mean that we may need to restructure the codes a tiny bit in SciFiReaders first, then mark can_read() in sidpy as Deprecated or a FutureWarning.
the
can_read()
function insidpy.Reader
seems superfluous, tedious, and unnecessary. Whether or not a Reader can read a file can easily be determined by whether__init__
throws an exception. If__init__
did not throw an exception, it is capable of reading that file. This will mean that we may need to restructure the codes a tiny bit in SciFiReaders first, then markcan_read()
insidpy
asDeprecated
or aFutureWarning
.Thoughts?