equinor / xtgeo

XTGeo Python class library for subsurface Surfaces, Cubes, Wells, Grids, Points, etc
https://xtgeo.readthedocs.io/en/latest/
GNU Lesser General Public License v3.0
109 stars 56 forks source link

BUG: accept masked arrays as values to Cube() #1168

Closed jcrivenaes closed 4 months ago

jcrivenaes commented 4 months ago

This also contains more checks on values input, e.g. if dimensions are correct.

Solves #1166

codecov-commenter commented 4 months ago

Codecov Report

Attention: 5 lines in your changes are missing coverage. Please review.

Comparison is base (f414fe6) 79.99% compared to head (d90ec95) 80.02%.

Files Patch % Lines
src/xtgeo/cube/cube1.py 80.00% 2 Missing and 3 partials :warning:
Additional details and impacted files ```diff @@ Coverage Diff @@ ## main #1168 +/- ## ========================================== + Coverage 79.99% 80.02% +0.02% ========================================== Files 97 97 Lines 13649 13660 +11 Branches 2188 2192 +4 ========================================== + Hits 10919 10931 +12 + Misses 2000 1999 -1 Partials 730 730 ```

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.