Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Set surface values to zero if all are masked #594

Merged
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
## [UNRELEASED] - YYYY-MM-DD
### Fixed
- [#569](https://github.com/equinor/webviz-subsurface/pull/584) - Fixed bug for in RelativePermeability plugin where it was not possible to plot against oil saturation axis when using relperm data of "family 2".
- [#594](https://github.com/equinor/webviz-subsurface/pull/594) - Fixed bug in SurfaceViewerFMU where surfaces with only undefined values was not handled properly.

## [0.1.9] - 2021-02-23
### Fixed
Expand Down
3 changes: 3 additions & 0 deletions webviz_subsurface/_models/surface_leaflet_model.py
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,9 @@ def get_zvalues(
values = surface.values
if flip:
values = np.flip(values.transpose(), axis=0)
# If all values are masked set to zero
if values.mask.all():
values = np.zeros(values.shape)
return values

@property
Expand Down