Skip to content

Commit

Permalink
Fix formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
jorgenherje committed Dec 18, 2024
1 parent 78cb421 commit 8cca3d0
Show file tree
Hide file tree
Showing 3 changed files with 23 additions and 8 deletions.
16 changes: 13 additions & 3 deletions backend_py/primary/primary/routers/inplace_volumetrics/router.py
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down Expand Up @@ -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.
Expand All @@ -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)

Expand Down
9 changes: 7 additions & 2 deletions backend_py/primary/primary/routers/rft/router.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)

Expand Down
6 changes: 3 additions & 3 deletions backend_py/primary/primary/routers/timeseries/router.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)

Expand Down Expand Up @@ -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)

Expand Down

0 comments on commit 8cca3d0

Please sign in to comment.