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

Handle missing surfaces in PropertyStatistics and support changes in input format #753

Merged

Conversation

HansKallekleiv
Copy link
Collaborator


Contributor checklist

@HansKallekleiv HansKallekleiv added the bug 🐛 Something isn't working label Aug 31, 2021
@HansKallekleiv HansKallekleiv self-assigned this Aug 31, 2021
@HansKallekleiv HansKallekleiv force-pushed the fix-missing-surfaces-propstats branch from 9a71afa to c38d742 Compare August 31, 2021 11:32
@HansKallekleiv HansKallekleiv added the next release 🚢 To be included in next release label Aug 31, 2021
Copy link
Collaborator

@tnatt tnatt left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM minor comment only 🙂

)
except ValueError: # Surface does not exist
return (
dash.dash.no_update,
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Consider changing to dash.no_update instead?

@HansKallekleiv HansKallekleiv force-pushed the fix-missing-surfaces-propstats branch from c38d742 to 1f05ecc Compare August 31, 2021 12:48
@HansKallekleiv HansKallekleiv requested a review from tnatt September 1, 2021 11:15
if TYPE_CHECKING:
# pylint: disable=cyclic-import
from ..property_statistics import PropertyStatistics
from ..models import PropertyStatisticsModel
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks like you are importing the PropertyStatisticsModel twice

Comment on lines 6 to 13
from webviz_subsurface.plugins._property_statistics.models.property_statistics_model import (
PropertyStatisticsModel,
)
from .selector_view import (
ensemble_selector,
property_selector,
filter_selector,
source_selector,
)

if TYPE_CHECKING:
# pylint: disable=cyclic-import
from ..property_statistics import PropertyStatistics
from ..models import PropertyStatisticsModel
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Same comment here

@HansKallekleiv HansKallekleiv force-pushed the fix-missing-surfaces-propstats branch from 6a53a0a to cc4aff9 Compare September 1, 2021 12:20
@HansKallekleiv HansKallekleiv merged commit bd84101 into equinor:master Sep 1, 2021
@HansKallekleiv HansKallekleiv deleted the fix-missing-surfaces-propstats branch September 1, 2021 12:58
@anders-kiaer anders-kiaer linked an issue Sep 9, 2021 that may be closed by this pull request
VincentNevermore pushed a commit to VincentNevermore/webviz-subsurface that referenced this pull request Jul 19, 2022
* well completions viewer component test

* well completions performance test

* merge master branch and format

* undo formatting of vector components

* update failing snapshots

* fix failing snapshots test

Co-authored-by: Håvard Bjerke <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug 🐛 Something isn't working next release 🚢 To be included in next release
Projects
Archived in project
2 participants