mateuszrydzik / waterquality

Package designed to detect and quantify water quality and cyanobacterial harmful algal bloom (CHABs) from remotely sensed imagery
https://rajohansen.github.io/waterquality/
Other
0 stars 0 forks source link

handle dataset with no metadata #2

Closed mateuszrydzik closed 1 year ago

mateuszrydzik commented 1 year ago

Currently, when Waterquality object is initialised, the class attempts to find metadata in the given directory. There is a case in which user might provide dataset without any metadata, containing only images.

This case should be handled, by forcing user to specify dataset type.

mateuszrydzik commented 1 year ago

implemented in commit e10c348

when no dataset type is provided, and no metadata is found, error is raised

added additional type verification, which raises error when invalid dataset type is provided