pycroscopy / SciFiReaders

Tools for extracting data and metadata from scientific data files
https://pycroscopy.github.io/SciFiReaders/about.html
MIT License
13 stars 13 forks source link

remove can_read from Reader #45

Closed ssomnath closed 10 months ago

ssomnath commented 2 years ago

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.

Thoughts?