Python package for interacting with Sumo in an FMU setting
Project description
fmu-sumo
fmu.sumo
is a Python package intended for interaction with FMU results stored in Sumo.
fmu.sumo.explorer
is a Python API for consuming FMU results from Sumo.
Note! Access to Sumo is required. For Equinor users, apply through `AccessIT``.
Installation
$ pip install fmu-sumo
... or for the latest development version:
$ git clone git@github.com:equinor/fmu-sumo.git
$ cd fmu-sumo
$ pip install .
:warning: OpenVDS does not publish builds for MacOS. You can still use the Explorer without OpenVDS, but some Cube methods will not work.
For development
$ git clone <your fork>
$ cd fmu-sumo
$ pip install .[dev]
Run tests
$ pytest tests/
Documentation and guidelines
:link: fmu-sumo documentation
Example usage
from fmu.sumo.explorer import Explorer
# Connect
sumo = Explorer()
# Apply filters
cases = cases.filter(status=["keep", "offical"], user="peesv", field="DROGON")
for case in cases:
print(f"{case.name} ({case.uuid})")
# Select case
case = cases[0]
# Alternatively, get specific case via case.uuid
case = sumo.get_case_by_uuid(<uuid>)
Contribute
License
Apache 2.0
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
fmu-sumo-1.1.0.tar.gz
(7.9 MB
view hashes)
Built Distribution
fmu_sumo-1.1.0-py3-none-any.whl
(38.3 kB
view hashes)