Skip to main content

Calculate well routing based on IOC routing tags

Project description

well-routing

Calculate well routing based on IOC rate distribution models "8002 - Rate distribution", flowline models "8110 - FLOWLINE RATE" and manifold models "8200 - MANIFOLD RATE". Also queries a list of known wells, pipes and separators.

Creates a set of Nodes and Edges and converts them to a directed graph structure for pathfinding and optimization.

Example Usage

The populate.py script demonstrates how to use these classes:

from classes import Graph

start_time = "01-Dec-2025"
stop_time = "05-Dec-2025"
chosen_time = "01-Dec-2025 12:00"

g = Graph.get_asset_graph(
            stid_code=asset, start_time=start_time, stop_time=stop_time
        )
G = g.convert_to_networkx(timestamp=pd.to_datetime(chosen_time))

Installation

Install for use

Install from pypi using pip install well-routing.

Development

Clone repository git clone https://github.com/equinor/well-routing and install dependencies using uv uv sync.

Install with pygraphviz

Mac

Typically pygraph application is installed using brew on mac. brew install pygraph.

uv sync --all-extras \
    --config-settings=--global-option=build_ext \
    --config-settings=--global-option="-I$(brew --prefix graphviz)/include" \
    --config-settings=--global-option="-L$(brew --prefix graphviz)/lib"

Windows

See install documentation at https://pygraphviz.github.io/documentation/stable/install.html#manual-download.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

well_routing-0.2.7.tar.gz (9.4 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

well_routing-0.2.7-py3-none-any.whl (10.2 kB view details)

Uploaded Python 3

File details

Details for the file well_routing-0.2.7.tar.gz.

File metadata

  • Download URL: well_routing-0.2.7.tar.gz
  • Upload date:
  • Size: 9.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/2.4.1 CPython/3.14.5 Darwin/25.5.0

File hashes

Hashes for well_routing-0.2.7.tar.gz
Algorithm Hash digest
SHA256 4b21b366f4c1779f80a8541726c16c57aaadb5d2a107b18b292428f79109e423
MD5 03c74c9c89202fb95060941e28068704
BLAKE2b-256 79ea8e72fb0178c30d2ae31309e48e811c75a3dcd24f7a835180273719f27228

See more details on using hashes here.

File details

Details for the file well_routing-0.2.7-py3-none-any.whl.

File metadata

  • Download URL: well_routing-0.2.7-py3-none-any.whl
  • Upload date:
  • Size: 10.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/2.4.1 CPython/3.14.5 Darwin/25.5.0

File hashes

Hashes for well_routing-0.2.7-py3-none-any.whl
Algorithm Hash digest
SHA256 89dd2b659ea49ad28b8e463ddf84fe8ab121771a419bdb526d92ff652e6897e5
MD5 febe904ac8c3d9123529a51c9b6022f8
BLAKE2b-256 f84d567b3391e5a92d94d2b57ad043e82ec3e2f1ce81a68123897bfdb40add34

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page