Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion geoengine/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@
LogarithmicGradientColorizer
from .datasets import upload_dataframe, StoredDataset, add_dataset, volumes, AddDatasetProperties, \
delete_dataset, list_datasets, DatasetListOrder, OgrSourceDatasetTimeType, OgrOnError, \
add_or_replace_dataset_with_permissions, dataset_info_by_name
add_or_replace_dataset_with_permissions, dataset_info_by_name, OgrSourceTimeFormat


DEFAULT_USER_AGENT = f'geoengine-python/{geoengine_openapi_client.__version__}'
Expand Down
4 changes: 2 additions & 2 deletions geoengine/datasets.py
Original file line number Diff line number Diff line change
Expand Up @@ -223,7 +223,7 @@ class StartEndOgrSourceDatasetTimeType(OgrSourceDatasetTimeType):
def to_api_dict(self) -> geoengine_openapi_client.OgrSourceDatasetTimeType:
return geoengine_openapi_client.OgrSourceDatasetTimeType(
geoengine_openapi_client.OgrSourceDatasetTimeTypeStartEnd(
type="startEnd",
type="start+end",
start_field=self.start_field,
start_format=self.start_format.to_api_dict(),
end_field=self.end_field,
Expand All @@ -243,7 +243,7 @@ class StartDurationOgrSourceDatasetTimeType(OgrSourceDatasetTimeType):
def to_api_dict(self) -> geoengine_openapi_client.OgrSourceDatasetTimeType:
return geoengine_openapi_client.OgrSourceDatasetTimeType(
geoengine_openapi_client.OgrSourceDatasetTimeTypeStartDuration(
type="startDuration",
type="start+duration",
start_field=self.start_field,
start_format=self.start_format.to_api_dict(),
duration_field=self.duration_field
Expand Down
8 changes: 4 additions & 4 deletions geoengine/workflow.py
Original file line number Diff line number Diff line change
Expand Up @@ -584,9 +584,9 @@ async def raster_stream(
if url is None:
raise InputException('Invalid websocket url')

async with websockets.asyncio.client.connect(
async with websockets.connect(
uri=self.__replace_http_with_ws(url),
extra_headers=session.auth_header,
additional_headers=session.auth_header,
open_timeout=open_timeout,
max_size=None,
) as websocket:
Expand Down Expand Up @@ -791,9 +791,9 @@ def process_bytes(batch_bytes: Optional[bytes]) -> Optional[gpd.GeoDataFrame]:
if url is None:
raise InputException('Invalid websocket url')

async with websockets.asyncio.client.connect(
async with websockets.connect(
uri=self.__replace_http_with_ws(url),
extra_headers=session.auth_header,
additional_headers=session.auth_header,
open_timeout=open_timeout,
max_size=None, # allow arbitrary large messages, since it is capped by the server's chunk size
) as websocket:
Expand Down