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.1.5.tar.gz
(189.3 kB
view details)
Built Distribution
origen_ai_ecl-0.1.5-py3-none-any.whl
(190.1 kB
view details)
File details
Details for the file origen_ai_ecl-0.1.5.tar.gz
.
File metadata
- Download URL: origen_ai_ecl-0.1.5.tar.gz
- Upload date:
- Size: 189.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.4.2 CPython/3.8.10 Linux/6.1.11-100.fc36.x86_64
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3792831b25d3e3867e301492c0d2eb10fd91eb65030fc843e9b9a2388f2ee028 |
|
MD5 | f99150f1c5201a66baad70bce79179d5 |
|
BLAKE2b-256 | ac9e798f3fbcbbd9eadee6ba8debeb3af0ce31c98e9a700e40e4f8d3c916ebac |
File details
Details for the file origen_ai_ecl-0.1.5-py3-none-any.whl
.
File metadata
- Download URL: origen_ai_ecl-0.1.5-py3-none-any.whl
- Upload date:
- Size: 190.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.4.2 CPython/3.8.10 Linux/6.1.11-100.fc36.x86_64
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3e036a88fc7099d281f57a292885f544d3bb1986e52ed301a82f681999aaaa04 |
|
MD5 | 20895c7df62f75202c1bd0e77e0df4bb |
|
BLAKE2b-256 | c65c6a9743c583f448025fdadb309962b4cb12c09b518022bc679c90510f48de |