Skip to content

Commit

Permalink
Handle ensembles with missing surface folders (#911)
Browse files Browse the repository at this point in the history
  • Loading branch information
HansKallekleiv authored Jan 6, 2022
1 parent 011d374 commit e84317c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
### Fixed

- [#888](https://github.com/equinor/webviz-subsurface/pull/888) - Improved `SeismicMisfit` performance when using polygon files with a large number of polygons.
- [#911](https://github.com/equinor/webviz-subsurface/pull/911) - Handle ensembles with missing surface folders in `PropertyStatistics`.

### Added

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ def generate_surface_table(
zone_in_file = surface_renaming.get(zone, zone)
prop_in_file = surface_renaming.get(prop, prop)
path = (
surface_folders[ensemble]
surface_folders.get(ensemble, pathlib.Path())
/ statistic
/ f"{zone_in_file}--{prop_in_file}.gri"
)
Expand Down

0 comments on commit e84317c

Please sign in to comment.