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
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
origen_ai_ecl-0.2.5.tar.gz
(192.8 kB
view details)
Built Distribution
origen_ai_ecl-0.2.5-py3-none-any.whl
(193.1 kB
view details)
File details
Details for the file origen_ai_ecl-0.2.5.tar.gz
.
File metadata
- Download URL: origen_ai_ecl-0.2.5.tar.gz
- Upload date:
- Size: 192.8 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
Algorithm | Hash digest | |
---|---|---|
SHA256 | 54658f6635d45089c7984f90ea1ec242f147c971f983e0017575a0d126d37349 |
|
MD5 | 74ecccb89e0f8866e33ec1db9e143016 |
|
BLAKE2b-256 | d1615c285ccd5b7fb08df1509e30d377d28c8ab698b4b38a1ce7892ce619f8b6 |
File details
Details for the file origen_ai_ecl-0.2.5-py3-none-any.whl
.
File metadata
- Download URL: origen_ai_ecl-0.2.5-py3-none-any.whl
- Upload date:
- Size: 193.1 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
Algorithm | Hash digest | |
---|---|---|
SHA256 | a907d0d4ad40e7ff0571646039e1fe8bc26df9893575acc884f1b1b86f78ed83 |
|
MD5 | 6a4d4146549d36bdff9d670ddd161fb1 |
|
BLAKE2b-256 | 70299b4423b56b40663686a1e651376ac78b40948a5a06e3e660ab3b26706d56 |