Skip to content

Commit

Permalink
fix: mypy issues
Browse files Browse the repository at this point in the history
  • Loading branch information
rubenthoms committed Nov 18, 2024
1 parent b7f0f16 commit 3f6ae6d
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions backend_py/primary/primary/routers/seismic/converters.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@

def surface_to_float32_array(values: np.ndarray) -> List[float]:
values = values.astype(np.float32)
values.fill_value = np.nan
np.ma.set_fill_value(values, np.nan)
values = np.ma.filled(values)

# Rotate 90 deg left.
Expand Down Expand Up @@ -45,6 +45,6 @@ def to_api_surface_data(
property_value_min=property_values.min(),
property_value_max=property_values.max(),
rot_deg=xtgeo_surf.rotation,
mesh_data=orjson.dumps(float32_mesh), # pylint: disable=maybe-no-member
property_data=orjson.dumps(float32_property), # pylint: disable=maybe-no-member
mesh_data=orjson.dumps(float32_mesh).decode("utf-8"), # pylint: disable=maybe-no-member
property_data=orjson.dumps(float32_property).decode("utf-8"), # pylint: disable=maybe-no-member
)
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@


class SmdaAccess:
def __init__(self):
def __init__(self) -> None:
pass

# type: ignore
Expand Down

0 comments on commit 3f6ae6d

Please sign in to comment.