Git Product home page Git Product logo

historymatching's Introduction

History matching tutorial

Run in the cloud (no installation required)

  • on Colab (requires Google login):
    Open In Colab
  • on a NORCE server (only available at specific times, to specific users):
    JupyterHub

OR: install

Use this option for development, or if you simply want faster computations (your typical laptop is twice as powerful as Google's free offering).

Prerequisite: Python>=3.7

If you're an expert, setup a python environment however you like. Otherwise: Install Anaconda, then open the Anaconda terminal and run the following commands:

conda create --yes --name my-env python=3.7
conda activate my-env
python --version

Ensure the printed version is 3.7 or more.
Keep using the same terminal for the commands below.

Install

  • Download and unzip (or git clone) this repository (see the green button up top)
  • Move the resulting folder wherever you like
  • cd into the folder
  • Install requirements:
    pip install -r path/to/requirements.txt

Launch

  • Launch the "notebook server" by executing:
    jupyter-notebook
    This will open up a page in your web browser that is a file navigator.
  • Click on MAIN.ipynb.

Developer guide

For development, you probably want to install requirements-dev.txt.

Personally I prefer to develop mostly in the format of standard python script. Then, thanks to the jupytext extension, I can convert this (.py) to a notebook (.ipynb) simply by opening the file in Jupyter, and ensuring that the file > Jupytext menu has check marks on both "Pair with ipynb" and "Pair with light script".

If you use vim I suggest folding (rather than wrapping) the comment blocks (corresponding to markdown cells) using

:setlocal foldmethod=expr foldexpr=getline(v:lnum)=~'^\#\ ' fdl=0

Contributors

This work has been developed by Patrick N. Raanes, researcher at NORCE. The project has been funded by DIGIRES, a project sponsored by industry partners and the PETROMAKS2 programme of the Research Council of Norway.

historymatching's People

Contributors

patnr avatar dafeda avatar

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.