Skip to content

Commit 19e593b

Browse files
committed
Fix np type
1 parent 4b9eaa3 commit 19e593b

2 files changed

Lines changed: 5 additions & 5 deletions

File tree

fct/drainage/BorderFlats.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -109,12 +109,12 @@ def LabelBorderFlatsTile(row, col, params, tileset='default', **kwargs):
109109
elevations[0, :],
110110
elevations[:, -1],
111111
np.flip(elevations[-1, :], axis=0),
112-
np.flip(elevations[:, 0], axis=0)], dtype=object),
112+
np.flip(elevations[:, 0], axis=0)]),
113113
labels=np.array([
114114
labels[0, :],
115115
labels[:, -1],
116116
np.flip(labels[-1, :], axis=0),
117-
np.flip(labels[:, 0], axis=0)], dtype=object),
117+
np.flip(labels[:, 0], axis=0)]),
118118
flatindex=flatindex,
119119
graph=np.array(list(graph.items()), dtype=object)
120120
)
@@ -569,4 +569,4 @@ def arguments():
569569

570570
with click.progressbar(pooled, length=len(arguments)) as iterator:
571571
for _ in iterator:
572-
pass
572+
pass

fct/drainage/DepressionFill.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -142,7 +142,7 @@ def step(msg):
142142

143143
step('Write filled DEM')
144144

145-
elevations = BurnTile(params, row, col, elevations, tileset=tileset) # Burn again filled elevations to avoid burned zone filling
145+
#elevations = BurnTile(params, row, col, elevations, tileset=tileset) # Burn again filled elevations to avoid burned zone filling
146146

147147
profile.update(
148148
compress='deflate',
@@ -169,7 +169,7 @@ def step(msg):
169169
elevations[0, :],
170170
elevations[:, -1],
171171
np.flip(elevations[-1, :], axis=0),
172-
np.flip(elevations[:, 0], axis=0)], dtype=object),
172+
np.flip(elevations[:, 0], axis=0)]),
173173
labels=np.array([
174174
labels[0, :],
175175
labels[:, -1],

0 commit comments

Comments
 (0)