зеркало из https://github.com/microsoft/torchgeo.git
Update small mistake of attributeerror (#2162)
This commit is contained in:
Родитель
b6e22fc4fe
Коммит
ff66eba3c4
|
@ -20,7 +20,7 @@ with rio.open(os.path.join(ROOT, FILENAME), "r") as src:
|
||||||
dtype = src.profile["dtype"]
|
dtype = src.profile["dtype"]
|
||||||
Z = np.random.randint(np.iinfo(dtype).max, size=(SIZE, SIZE), dtype=dtype)
|
Z = np.random.randint(np.iinfo(dtype).max, size=(SIZE, SIZE), dtype=dtype)
|
||||||
with rio.open(FILENAME, "w", **src.profile) as dst:
|
with rio.open(FILENAME, "w", **src.profile) as dst:
|
||||||
for i in dst.profile.indexes:
|
for i in dst.indexes:
|
||||||
dst.write(Z, i)
|
dst.write(Z, i)
|
||||||
```
|
```
|
||||||
|
|
||||||
|
|
Загрузка…
Ссылка в новой задаче