Skip to content

Commit b9ee63e

Browse files
committed
Update rips module, proto files, and Python examples
1 parent 151215e commit b9ee63e

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

docs/rips/instance.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,7 @@ class Instance:
4444
Attributes:
4545
launched (bool): Tells us whether the application was launched as a new process.
4646
If the application was launched we may need to close it when exiting the script.
47+
port (int): The port number used to connect to this instance.
4748
commands (Commands): Command executor. Set when creating an instance.
4849
project (Project): Current project in ResInsight.
4950
Set when creating an instance and updated when opening/closing projects.
@@ -246,6 +247,7 @@ def __init__(self, port: int = 50051, launched: bool = False) -> None:
246247
port(int): port number
247248
"""
248249
self.location: str = "localhost:" + str(port)
250+
self.port: int = port
249251

250252
self.channel = grpc.insecure_channel(
251253
self.location, options=[("grpc.enable_http_proxy", False)]

0 commit comments

Comments
 (0)