hydromt icon indicating copy to clipboard operation
hydromt copied to clipboard

throw index errors in all get_data methods if out of bounds

Open DirkEilander opened this issue 2 years ago • 0 comments

Some get_data and to_file methods of DataAdapter classes only give a warning and an empty object rather than an error when bbox or time_tuple is out of range. This may yield unclear error messages later on.

In general low-level functionality should have clear error messages, which can be escaped (try-except) in higher level methods where needed.

DirkEilander avatar Aug 16 '22 14:08 DirkEilander