Skip to content

Commit

Permalink
CLN: Separate spec and bbox derivation
Browse files Browse the repository at this point in the history
This further breaks down the object data provider into a more refined
API and into more maintainable and testable blocks. An added benefit is
more type sanity.
  • Loading branch information
mferrera committed Mar 22, 2024
1 parent 3b658e6 commit eadf87f
Show file tree
Hide file tree
Showing 6 changed files with 478 additions and 424 deletions.
5 changes: 5 additions & 0 deletions src/fmu/dataio/_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
from pathlib import Path
from typing import Any, Final, Literal

import numpy as np
import pandas as pd
import xtgeo
import yaml
Expand All @@ -25,6 +26,10 @@
logger: Final = null_logger(__name__)


def npfloat_to_float(v: Any) -> Any:
return float(v) if isinstance(v, (np.float64, np.float32)) else v


def detect_inside_rms() -> bool:
"""Detect if 'truly' inside RMS GUI, where predefined variable project exist.
Expand Down
Loading

0 comments on commit eadf87f

Please sign in to comment.