creare-com / pydem

Python library for Global Hydrology Analysis. Used to calculate upstream contributing area, aspect, slope, and topographic wetness index.
Apache License 2.0
114 stars 35 forks source link

Using np.sum() instead of += in _find_flats_edges #6

Closed mbjoseph closed 7 years ago

mbjoseph commented 7 years ago

This should solve #5. I pulled the solution from https://github.com/numpy/numpy/issues/7225

The key argument seems to be casting = "unsafe".