Open zxdawn opened 2 years ago
You're not wrong. I think we used to have a good reason for doing this like this, but right now I can't think of why. The best thing I can come up with is if users are using the automatic functions like find_files_and_readers
, we don't want them to get a ton of warnings about readers they don't have dependencies for when they only care about a few readers. I suppose we could use warnings.catch_warnings
in functions like find_files_and_readers
to hide those warnings when we don't want to see them, but otherwise by default we see them.
Pull requests welcome :man_shrugging:
Describe the bug
I tried to read the MODIS_L2 HDF files and got this error:
When I turned the debug on, I found out the problem:
Expected behavior
It's better to raise the missed package error instead of the missing reader error. Or, making the pyhdf the necessary installed package?
Environment Info: