From 765e861453aeddbe64f649ee19f8e453eb5e14a3 Mon Sep 17 00:00:00 2001 From: Ruben Thoms Date: Thu, 17 Oct 2024 16:12:19 +0200 Subject: [PATCH] pylint fixes --- backend_py/primary/primary/routers/seismic/router.py | 3 +-- backend_py/primary/primary/routers/surface/schemas.py | 2 +- .../primary/primary/services/smda_access/smda_access.py | 4 ++-- 3 files changed, 4 insertions(+), 5 deletions(-) diff --git a/backend_py/primary/primary/routers/seismic/router.py b/backend_py/primary/primary/routers/seismic/router.py index e975e6495..9d885b0c6 100644 --- a/backend_py/primary/primary/routers/seismic/router.py +++ b/backend_py/primary/primary/routers/seismic/router.py @@ -5,14 +5,13 @@ from webviz_pkg.core_utils.b64 import b64_encode_float_array_as_float32 from primary.auth.auth_helper import AuthHelper -from primary.services.sumo_access.surface_access import SurfaceAccess from primary.services.sumo_access.seismic_access import SeismicAccess, VdsHandle from primary.services.utils.authenticated_user import AuthenticatedUser from primary.services.vds_access.request_types import VdsCoordinates, VdsCoordinateSystem from primary.services.vds_access.response_types import VdsMetadata from primary.services.vds_access.vds_access import VdsAccess -from . import converters, schemas +from . import schemas LOGGER = logging.getLogger(__name__) diff --git a/backend_py/primary/primary/routers/surface/schemas.py b/backend_py/primary/primary/routers/surface/schemas.py index 783406940..3e6224991 100644 --- a/backend_py/primary/primary/routers/surface/schemas.py +++ b/backend_py/primary/primary/routers/surface/schemas.py @@ -1,5 +1,5 @@ from enum import Enum -from typing import List, Literal, Optional +from typing import List, Literal from pydantic import BaseModel, ConfigDict from webviz_pkg.core_utils.b64 import B64FloatArray diff --git a/backend_py/primary/primary/services/smda_access/smda_access.py b/backend_py/primary/primary/services/smda_access/smda_access.py index 221c44512..342ca9df1 100644 --- a/backend_py/primary/primary/services/smda_access/smda_access.py +++ b/backend_py/primary/primary/services/smda_access/smda_access.py @@ -180,7 +180,7 @@ async def get_wellbore_picks_for_wellbore( picks: List[WellborePick] = [] for result in results: # Drop any picks with missing data - if all([result.get(key) for key in ["northing", "easting", "tvd", "tvd_msl"]]): + if all(result.get(key) for key in ["northing", "easting", "tvd", "tvd_msl"]): picks.append(WellborePick(**result)) else: LOGGER.warning( @@ -216,7 +216,7 @@ async def get_wellbore_picks_for_pick_identifier( picks: List[WellborePick] = [] for result in results: # Drop any picks with missing data - if all([result.get(key) for key in ["northing", "easting", "tvd", "tvd_msl"]]): + if all(result.get(key) for key in ["northing", "easting", "tvd", "tvd_msl"]): picks.append(WellborePick(**result)) else: LOGGER.warning(