Skip to main content

No project description provided

Project description

opm-origen

Bulding with docker-compose

First, create an env variables file by copying config.env.example into config.env:

$> cp config.env.example config.env

If you wish to publish the package in pypi, you will have to obtain a pypi token and set the environment variable PYPI_API_TOKEN in config.env.

After that, you can simply use docker-compose to run commands:

docker-compose run build 

Building the package without docker/docker-compose

Prerequisites

  • Install make, cmake and g++
  • Build/Install Opm-Common
  • Build/Install Opm-Grid

Install opm packages

sudo apt-add-repository ppa:opm/ppa
sudo apt-get update

sudo apt-get install libopm-common-dev
sudo apt-get install libopm-grid-dev

How to build

git clone git@github.com:OriGenAI/opm-origen.git
cd opm-origen
mkdir build
cd build
cmake ..
make

How to use

  • Copy the binary under build/lib folder
  • Import the binary from your Python code
  • Call the library functions

Examples

from origen.ai.ecl import read_transmissibility

trans = read_transmissibility("path-to-data.DATA")
print(trans)

Develop

You can use the main.cpp file to debug. Just call your function from there and compile the code. You will find the binary in build/bin/main

Project details


Download files

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

Source Distribution

origen_ai_ecl-0.2.1.tar.gz (191.6 kB view details)

Uploaded Source

Built Distribution

origen_ai_ecl-0.2.1-py3-none-any.whl (192.0 kB view details)

Uploaded Python 3

File details

Details for the file origen_ai_ecl-0.2.1.tar.gz.

File metadata

  • Download URL: origen_ai_ecl-0.2.1.tar.gz
  • Upload date:
  • Size: 191.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.4.2 CPython/3.8.13 Linux/6.1.11-100.fc36.x86_64

File hashes

Hashes for origen_ai_ecl-0.2.1.tar.gz
Algorithm Hash digest
SHA256 bf5bbca6ecdd853d670deedc08ffd3df55652574d61e99bf22092ff4de175544
MD5 08d95381358707b51a284003c200699e
BLAKE2b-256 46fe63f4c07da71712e7a294a0c918d2f1e2b057006ef16f647d10632ea0db88

See more details on using hashes here.

File details

Details for the file origen_ai_ecl-0.2.1-py3-none-any.whl.

File metadata

  • Download URL: origen_ai_ecl-0.2.1-py3-none-any.whl
  • Upload date:
  • Size: 192.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.4.2 CPython/3.8.13 Linux/6.1.11-100.fc36.x86_64

File hashes

Hashes for origen_ai_ecl-0.2.1-py3-none-any.whl
Algorithm Hash digest
SHA256 0b0e532be6df12a4a6cc3a19e5424bb5b531bb333e8a549063598a51012a8c75
MD5 b2f4369546f515edad801c1a5fcf4d66
BLAKE2b-256 6324abc66e65a6103caaf264d7a12fec324b5047c4e0348955b8e5ca29130acb

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