USGS-R / river-dl

Deep learning model for predicting environmental variables on river systems
Creative Commons Zero v1.0 Universal
21 stars 14 forks source link

fixing errors when segs is a list #221

Closed janetrbarclay closed 1 year ago

janetrbarclay commented 1 year ago

The documentation indicates that segs (used in preproc_utils.py) can be list-like (the default value is None), but there are multiple if segs: statements that throw and error if segs is a list. This PR replaces if segs: with if np.any(segs): throughout preproc_utils.py