@@ -535,6 +535,13 @@ def save_as_dataset(
535535
536536 session = get_session ()
537537
538+ print (geoengine_openapi_client .RasterDatasetFromWorkflow (
539+ name = name ,
540+ display_name = display_name ,
541+ description = description ,
542+ query = query_rectangle
543+ ).to_json ())
544+
538545 with geoengine_openapi_client .ApiClient (session .configuration ) as api_client :
539546 workflows_api = geoengine_openapi_client .WorkflowsApi (api_client )
540547 response = workflows_api .dataset_from_workflow_handler (
@@ -984,8 +991,9 @@ def data_usage(offset: int = 0, limit: int = 10) -> List[geoengine_openapi_clien
984991 response = user_api .data_usage_handler (offset = offset , limit = limit )
985992
986993 # create dataframe from response
987- usage_dicts = [data_usage .dict (by_alias = True ) for data_usage in response ]
994+ usage_dicts = [data_usage .model_dump (by_alias = True ) for data_usage in response ]
988995 df = pd .DataFrame (usage_dicts )
996+ df ['timestamp' ] = pd .to_datetime (df ['timestamp' ], utc = True )
989997
990998 return df
991999
@@ -1005,7 +1013,8 @@ def data_usage_summary(granularity: geoengine_openapi_client.UsageSummaryGranula
10051013 offset = offset , limit = limit )
10061014
10071015 # create dataframe from response
1008- usage_dicts = [data_usage .dict (by_alias = True ) for data_usage in response ]
1016+ usage_dicts = [data_usage .model_dump (by_alias = True ) for data_usage in response ]
10091017 df = pd .DataFrame (usage_dicts )
1018+ df ['timestamp' ] = pd .to_datetime (df ['timestamp' ], utc = True )
10101019
10111020 return df
0 commit comments