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.7.tar.gz
(193.1 kB
view details)
Built Distribution
origen_ai_ecl-0.2.7-py3-none-any.whl
(193.6 kB
view details)
File details
Details for the file origen_ai_ecl-0.2.7.tar.gz
.
File metadata
- Download URL: origen_ai_ecl-0.2.7.tar.gz
- Upload date:
- Size: 193.1 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 | 6c63dbb8da952a983c642c224ac6ff30aff6b2bb1eda7c5fab080287b06491f6 |
|
MD5 | 406085fa005814b06a1a0493e58f898d |
|
BLAKE2b-256 | fb5b234ade8cbee780c60103973f669863553d23d804a0f0669c67b6d2f5aac7 |
File details
Details for the file origen_ai_ecl-0.2.7-py3-none-any.whl
.
File metadata
- Download URL: origen_ai_ecl-0.2.7-py3-none-any.whl
- Upload date:
- Size: 193.6 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 | 71feaf7843e319d7c7611c4082a58c5d7b7dff33ed2e7f21e76ac8f8c4232c1e |
|
MD5 | c9d098a16c36547e693f45d8387a74c9 |
|
BLAKE2b-256 | bacc6a658dd627f23bf4280af8d59fee6d5e9089d15195f2bb0e586adce532a0 |