Annoying warning in VBET
Closed this issue · 1 comments
KellyMWhitehead commented
Low priority, but the following warning is clogging up our vbet logs:
2024-03-05 22:19:53:: /usr/local/src/riverscapes-tools/packages/vbet/vbet/vbet.py:687: RuntimeWarning: invalid value encountered in sqrt
2024-03-05 22:19:53:: (np.sqrt(masked_prox) / np.sqrt(max_prox))
It is a numpy warning that is repeated as we iterate through raster masks and level paths. I was unsuccessful at isolating it and prevent it from printing to our log. Hoping someone might have a good idea here, but low priority for sure.
jtgilbert commented
@KellyMWhitehead the fix also took care of this.