Skip to main content

Webviz config plugins for subsurface data

Project description

PyPI version Build Status Total alerts Language grade: Python Python 3.6 | 3.7 | 3.8 Code style: black

Webviz subsurface

:sparkles::eyeglasses: Live demo application

Introduction

This repository contains subsurface specific standard webviz containers, which are used as plugins in webviz-config.

Installation

The easiest way of installing this package is to run

pip install webviz-subsurface

Add --upgrade if you have installed earlier, but want to upgrade to a newer version.

:warning: Due to limitations of internal software deployment system in Equinor, we currently can not include two useful dependencies in setup.py. You are therefore suggested to also run pip install opm ecl2df (note that opm binaries are only available on Linux at the moment, and you need a recent version of pip).

If you want to install the latest, unreleased, code you can instead run

pip install git+https://github.com/equinor/webviz-subsurface

Usage and documentation

For general usage, see the documentation on webviz-config. End-user documentation for the subsurface containers are automatically built and hosted on the github pages for this repository.

There is also a live demo application showing how a created application can look like, using the master branch of this repository.

Example webviz configuration files

Example webviz configuration files, and corresponding test data, is available at https://github.com/equinor/webviz-subsurface-testdata.

See that repository for instructions on how to download and run the examples.

Creating new elements

If you are interested in creating new elements which can be configured through the configuration file, take a look at the webviz-config contribution guide.

You can do automatic linting of your code changes by running

black --check webviz_subsurface tests # Check code style
pylint webviz_subsurface tests # Check code quality
bandit -r -c ./bandit.yml webviz_subsurface tests  # Check Python security best practice

Review of contributions

When doing review of contributions, it is usually useful to also see the resulting application live, and not only the code changes. In order to facilitate this, this repository is using GitHub actions.

When on a feature branch, and a commit message including the substring [deploy test] arrives, the GitHub action workflow will try to build and deploy a test Docker image for you (which you then can link to a web app with e.g. automatic reload on new images). All you need to do in your own fork is to add GitHub secrets with the following names:

  • review_docker_registry_url: The registry to push to (e.g. myregistry.azurecr.io)
  • review_docker_registry_username: Registry login username.
  • review_docker_registry_token: Registry login token (or password).
  • review_container_name: What you want to call the container pushed to the registry.

You are encouraged to rebase and squash/fixup unnecessary commits before pull request is merged to master.

Disclaimer

This is a tool under heavy development. The current configuration file layout, also for subsurface containers, will therefore see large changes.

Project details


Release history Release notifications | RSS feed

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

webviz-subsurface-0.1.3.tar.gz (206.7 kB view details)

Uploaded Source

Built Distribution

webviz_subsurface-0.1.3-py3-none-any.whl (220.0 kB view details)

Uploaded Python 3

File details

Details for the file webviz-subsurface-0.1.3.tar.gz.

File metadata

  • Download URL: webviz-subsurface-0.1.3.tar.gz
  • Upload date:
  • Size: 206.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.21.0 setuptools/50.3.0 requests-toolbelt/0.9.1 tqdm/4.49.0 CPython/3.6.12

File hashes

Hashes for webviz-subsurface-0.1.3.tar.gz
Algorithm Hash digest
SHA256 3980d6ad6175ad5fb63f50b0b63f8e8b4a13406d8056e91e4c2db3fbefe2e16d
MD5 6b0e35943ae8aa72d46afa1fcfa3e788
BLAKE2b-256 a18f7702698230c9f3b866cb23b6769cda2ef441b3127d5ac80cc018b9c3b520

See more details on using hashes here.

File details

Details for the file webviz_subsurface-0.1.3-py3-none-any.whl.

File metadata

  • Download URL: webviz_subsurface-0.1.3-py3-none-any.whl
  • Upload date:
  • Size: 220.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.21.0 setuptools/50.3.0 requests-toolbelt/0.9.1 tqdm/4.49.0 CPython/3.6.12

File hashes

Hashes for webviz_subsurface-0.1.3-py3-none-any.whl
Algorithm Hash digest
SHA256 fcfaaeeef8f6b4bd79f9f257edc283ccbc6333f3d5c6a58c860d3f9d48d311d9
MD5 b25d9f24589a19bb4277820a1e881ce2
BLAKE2b-256 c5e3f6fa1b5555f050fb0c4c5b7333174af863afbeb3ad8343e1ba0289ff27fc

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page