Use standard int instead of uint8, int32, etc.

Much faster with NumPy.
This commit is contained in:
Gael-de-Sailly
2020-12-03 23:30:57 +01:00
parent faef1658a9
commit 40098d6be3
2 changed files with 5 additions and 5 deletions

View File

@ -71,8 +71,8 @@ class EvolutionModel:
self.calculate_flow()
else:
self.lakes = dem
self.dirs = np.zeros(dem.shape, dtype='u1')
self.rivers = np.zeros(dem.shape, dtype='u4')
self.dirs = np.zeros(dem.shape, dtype=int)
self.rivers = np.zeros(dem.shape, dtype=int)
self.flow_uptodate = False
def calculate_flow(self):