From 9b94e94cf75a519a6d4f7ba9463ff6b69141bb16 Mon Sep 17 00:00:00 2001 From: jorgenherje Date: Thu, 19 Dec 2024 08:38:30 +0100 Subject: [PATCH] Fix formatting back-end --- backend_py/primary/primary/routers/timeseries/router.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/backend_py/primary/primary/routers/timeseries/router.py b/backend_py/primary/primary/routers/timeseries/router.py index 6d3f46323..2d58b8122 100644 --- a/backend_py/primary/primary/routers/timeseries/router.py +++ b/backend_py/primary/primary/routers/timeseries/router.py @@ -223,12 +223,13 @@ async def get_statistical_vector_data_per_sensitivity( ret_data: list[schemas.VectorStatisticSensitivityData] = [] if not sensitivities: return ret_data - - requested_realizations_mask = pc.is_in(vector_table["REAL"], value_set=pa.array(realizations)) if realizations else None + requested_realizations_mask = ( + pc.is_in(vector_table["REAL"], value_set=pa.array(realizations)) if realizations else None + ) for sensitivity in sensitivities: for case in sensitivity.cases: - sens_case_realization_mask = pc.is_in(vector_table["REAL"], value_set=pa.array(case.realizations)) + sens_case_realization_mask = pc.is_in(vector_table["REAL"], value_set=pa.array(case.realizations)) if requested_realizations_mask is not None: sens_case_realization_mask = pc.and_(requested_realizations_mask, sens_case_realization_mask) table = vector_table.filter(sens_case_realization_mask)