From 8cca3d0a408ff7a816f69268a2e5fe95a8537adc Mon Sep 17 00:00:00 2001 From: jorgenherje Date: Wed, 18 Dec 2024 14:28:25 +0100 Subject: [PATCH] Fix formatting --- .../routers/inplace_volumetrics/router.py | 16 +++++++++++++--- backend_py/primary/primary/routers/rft/router.py | 9 +++++++-- .../primary/primary/routers/timeseries/router.py | 6 +++--- 3 files changed, 23 insertions(+), 8 deletions(-) diff --git a/backend_py/primary/primary/routers/inplace_volumetrics/router.py b/backend_py/primary/primary/routers/inplace_volumetrics/router.py index 8ce5d603d..efaaa8f55 100644 --- a/backend_py/primary/primary/routers/inplace_volumetrics/router.py +++ b/backend_py/primary/primary/routers/inplace_volumetrics/router.py @@ -53,7 +53,12 @@ async def post_get_aggregated_per_realization_table_data( group_by_identifiers: Annotated[ list[schemas.InplaceVolumetricsIdentifier] | None, Query(description="The identifiers to group table data by") ] = None, - realizations_encoded_as_uint_list_str: Annotated[str | None, Query(description="Optional list of realizations encoded as string to include. If not specified, all realizations will be included.")] = None, + realizations_encoded_as_uint_list_str: Annotated[ + str | None, + Query( + description="Optional list of realizations encoded as string to include. If not specified, all realizations will be included." + ), + ] = None, ) -> schemas.InplaceVolumetricTableDataPerFluidSelection: """ Get aggregated volumetric data for a given table with data per realization based on requested results and categories/index filter. @@ -112,7 +117,12 @@ async def post_get_aggregated_statistical_table_data( group_by_identifiers: Annotated[ list[schemas.InplaceVolumetricsIdentifier] | None, Query(description="The identifiers to group table data by") ] = None, - realizations_encoded_as_uint_list_str: Annotated[str | None, Query(description="Optional list of realizations encoded as string to include. If not specified, all realizations will be included.")] = None, + realizations_encoded_as_uint_list_str: Annotated[ + str | None, + Query( + description="Optional list of realizations encoded as string to include. If not specified, all realizations will be included." + ), + ] = None, ) -> schemas.InplaceStatisticalVolumetricTableDataPerFluidSelection: """ Get statistical volumetric data across selected realizations for a given table based on requested results and categories/index filter. @@ -122,7 +132,7 @@ async def post_get_aggregated_statistical_table_data( """ perf_metrics = ResponsePerfMetrics(response) - realizations: list[int]|None = None + realizations: list[int] | None = None if realizations_encoded_as_uint_list_str: realizations = decode_uint_list_str(realizations_encoded_as_uint_list_str) diff --git a/backend_py/primary/primary/routers/rft/router.py b/backend_py/primary/primary/routers/rft/router.py index ee8ec2a52..04a9a4d36 100644 --- a/backend_py/primary/primary/routers/rft/router.py +++ b/backend_py/primary/primary/routers/rft/router.py @@ -36,9 +36,14 @@ async def get_realization_data( well_name: Annotated[str, Query(description="Well name")], response_name: Annotated[str, Query(description="Response name")], timestamps_utc_ms: Annotated[list[int] | None, Query(description="Timestamps utc ms")] = None, - realizations_encoded_as_uint_list_str: Annotated[str | None, Query(description="Optional list of realizations encoded as string to include. If not specified, all realizations will be included.")] = None, + realizations_encoded_as_uint_list_str: Annotated[ + str | None, + Query( + description="Optional list of realizations encoded as string to include. If not specified, all realizations will be included." + ), + ] = None, ) -> list[schemas.RftRealizationData]: - realizations: list[int]|None = None + realizations: list[int] | None = None if realizations_encoded_as_uint_list_str: realizations = decode_uint_list_str(realizations_encoded_as_uint_list_str) diff --git a/backend_py/primary/primary/routers/timeseries/router.py b/backend_py/primary/primary/routers/timeseries/router.py index fc1ebe9b1..c1cf5f390 100644 --- a/backend_py/primary/primary/routers/timeseries/router.py +++ b/backend_py/primary/primary/routers/timeseries/router.py @@ -63,10 +63,10 @@ async def get_realizations_vector_data( # fmt:on ) -> list[schemas.VectorRealizationData]: """Get vector data per realization""" - + perf_metrics = ResponsePerfMetrics(response) - realizations: list[int]|None = None + realizations: list[int] | None = None if realizations_encoded_as_uint_list_str: realizations = decode_uint_list_str(realizations_encoded_as_uint_list_str) @@ -162,7 +162,7 @@ async def get_statistical_vector_data( perf_metrics = ResponsePerfMetrics(response) - realizations: list[int]|None = None + realizations: list[int] | None = None if realizations_encoded_as_uint_list_str: realizations = decode_uint_list_str(realizations_encoded_as_uint_list_str)