Coder Social home page Coder Social logo

webviz-4d's Introduction

webviz-4d

Introduction

This repository contains a webviz-subsurface plugin decicated for visualization of 4D attribute maps, which can be used together with other plugins in webviz-config.

Made using webviz-container-boilerplate

Installation

The easiest way of installing this local package is to run

pip install .

If you want to install test and linting dependencies, you can in addition run

pip install .[tests]

Linting

You can do automatic linting of your code changes by running

black --check webviz_4d # Check code style
pylint webviz_4d # Check code quality
bandit -r webviz_4d  # Check Python security best practice

Usage and documentation

For general usage, see the documentation on webviz-config.

webviz-4d's People

Contributors

ashildskalnes avatar hanskallekleiv avatar

Stargazers

Bjørn Egil Ludvigsen avatar

Watchers

James Cloos avatar  avatar  avatar

webviz-4d's Issues

Update loading of surfaces with xtgeo

Avoid the warning related to loading surfaces: Initializing directly from file name is deprecated and will be removed in xtgeo version 4.0. Use: mysurf = xtgeo.surface_from_file('some_name.gri') instead

Need functionality to link fault polygons to the selected zone/surface

Workflow:

  • create a spreadsheet (polygon mapping) with mapping of zone names to polygon files in the ensemble (currently using realization-0 and iter-0/pred)
  • execute a preparation script (convert_rms_polygons.py) that copies the polygon files from the scratch disk to the webviz-4d project
  • modify _surface_viwer_4D.py and _polygon.py to check if the zone polygon exists (same name as the zone) and then load it

Fix Try, Except, Pass issues in _metadata.py

Test results:

Issue: [B110:try_except_pass] Try, Except, Pass detected.
Severity: Low Confidence: High
Location: webviz_4d/_datainput/_metadata.py:260:4
More Info: https://bandit.readthedocs.io/en/latest/plugins/b110_try_except_pass.html
259 metadata = metadata_df[metadata_df["filename"] == surfacepath]
260 except:
261 pass
262


Issue: [B110:try_except_pass] Try, Except, Pass detected.
Severity: Low Confidence: High
Location: webviz_4d/_datainput/common.py:44:12
More Info: https://bandit.readthedocs.io/en/latest/plugins/b110_try_except_pass.html
43 value = defaults[key]
44 except:
45 pass
46 return value

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.