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.11.tar.gz
(200.6 kB
view hashes)
Built Distribution
origen_ai_ecl-0.2.11-py3-none-any.whl
(201.5 kB
view hashes)
Close
Hashes for origen_ai_ecl-0.2.11-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 086a15303d5d1b9691d25d82b9550010dbaea8489b17999649b508f77b8cee73 |
|
MD5 | 59d88a20da305d2f3682700f6236749c |
|
BLAKE2b-256 | 3a83fa476ed6a53f0318c878a2bc9dac86c89f7cccc549150dee4e55a4c82168 |