Simple use of a local Cegal Hub with Petrel UI#

Ensure the Cegal Hub Petrel plugin is installed and Petrel has been launched with a UI.

Ensure the cegalprizm-hub Python package is installed in your local Python environment. Pip install cegalprizm-hub.

Ensure that Petrel is connected to Cegal Hub by inspecting the Cegal Hub UI in Marina. (Depending on your settings Petrel will connect automatically on startup)

HubRemoteConnection_setup2.png

Import from Cegal Hub

[ ]:
from cegalprizm.hub import Hub

Create a new Hub object

[ ]:
hub = Hub()

Create a default Petrel context from Hub. As Petrel is running this will be a strong handle to your local running Petrel instance.

[ ]:
p_ctx = hub.default_petrel_ctx()

Ask Petrel for some basic information on the project

[ ]:
p_ctx.project_info()