Shapely >= 1.2.9 required for shapely.geometry.box

This commit is contained in:
Adam J. Stewart 2021-07-08 12:50:34 -05:00
Родитель d682fa2f56
Коммит 145fdceeca
Не найден ключ, соответствующий данной подписи
Идентификатор ключа GPG: C66C0675661156FC
5 изменённых файлов: 13 добавлений и 4 удалений

Просмотреть файл

@ -8,8 +8,9 @@ dependencies:
- pip
- python
- pytorch::pytorch>=1.7
- pytorch::torchvision<0.10
- pytorch::torchvision!=0.10.0
- setuptools>=42
- shapely>=1.2.9
- sphinx
- rasterio
- pip:

Просмотреть файл

@ -14,6 +14,7 @@ radiant-mlhub>=0.2.1
rarfile
rasterio
setuptools>=42
shapely>=1.2.9
sphinx
torch>=1.7
torchvision<0.10
torchvision!=0.10.0

Просмотреть файл

@ -29,8 +29,9 @@ install_requires =
numpy
pillow
rasterio
shapely>=1.2.9
torch>=1.7
torchvision
torchvision!=0.10.0
python_requires = >= 3.6
packages = find:

Просмотреть файл

@ -17,7 +17,8 @@ spack:
- py-rarfile
- py-rasterio
- "py-setuptools@42:"
- "py-shapely@1.2.9:"
- py-sphinx
- "py-torch@1.7:"
- py-torchvision
- "py-torchvision@:0.9,0.10.1:"
concretization: together

Просмотреть файл

@ -1,6 +1,8 @@
import abc
from datetime import datetime
from typing import Any, Iterator, Tuple
from shapely.geometry import box
from torch.utils.data import Sampler
# https://github.com/pytorch/pytorch/issues/60979
@ -35,6 +37,9 @@ class RandomGeoSampler(GeoSampler):
the dataset and return as many random :term:`chips <chip>` as possible.
"""
def __init__(self, roi: box, start_time: datetime, end_time: datetime) -> None:
pass
class GridGeoSampler(GeoSampler):
"""Samples elements in a grid-like fashion.