gridappsd-python 2025.3.2a4__tar.gz → 2025.3.2a6__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {gridappsd_python-2025.3.2a4 → gridappsd_python-2025.3.2a6}/PKG-INFO +1 -1
- {gridappsd_python-2025.3.2a4 → gridappsd_python-2025.3.2a6}/gridappsd/goss.py +5 -2
- {gridappsd_python-2025.3.2a4 → gridappsd_python-2025.3.2a6}/pyproject.toml +1 -1
- {gridappsd_python-2025.3.2a4 → gridappsd_python-2025.3.2a6}/README.md +0 -0
- {gridappsd_python-2025.3.2a4 → gridappsd_python-2025.3.2a6}/gridappsd/__init__.py +0 -0
- {gridappsd_python-2025.3.2a4 → gridappsd_python-2025.3.2a6}/gridappsd/__main__.py +0 -0
- {gridappsd_python-2025.3.2a4 → gridappsd_python-2025.3.2a6}/gridappsd/app_registration.py +0 -0
- {gridappsd_python-2025.3.2a4 → gridappsd_python-2025.3.2a6}/gridappsd/difference_builder.py +0 -0
- {gridappsd_python-2025.3.2a4 → gridappsd_python-2025.3.2a6}/gridappsd/docker_handler.py +0 -0
- {gridappsd_python-2025.3.2a4 → gridappsd_python-2025.3.2a6}/gridappsd/field_interface/__init__.py +0 -0
- {gridappsd_python-2025.3.2a4 → gridappsd_python-2025.3.2a6}/gridappsd/gridappsd.py +0 -0
- {gridappsd_python-2025.3.2a4 → gridappsd_python-2025.3.2a6}/gridappsd/houses.py +0 -0
- {gridappsd_python-2025.3.2a4 → gridappsd_python-2025.3.2a6}/gridappsd/json_extension.py +0 -0
- {gridappsd_python-2025.3.2a4 → gridappsd_python-2025.3.2a6}/gridappsd/loghandler.py +0 -0
- {gridappsd_python-2025.3.2a4 → gridappsd_python-2025.3.2a6}/gridappsd/register_app.py +0 -0
- {gridappsd_python-2025.3.2a4 → gridappsd_python-2025.3.2a6}/gridappsd/simulation.py +0 -0
- {gridappsd_python-2025.3.2a4 → gridappsd_python-2025.3.2a6}/gridappsd/timeseries.py +0 -0
- {gridappsd_python-2025.3.2a4 → gridappsd_python-2025.3.2a6}/gridappsd/topics.py +0 -0
- {gridappsd_python-2025.3.2a4 → gridappsd_python-2025.3.2a6}/gridappsd/utils.py +0 -0
|
@@ -70,6 +70,7 @@ class GRIDAPPSD_ENV_ENUM(Enum):
|
|
|
70
70
|
GRIDAPPSD_ADDRESS = "GRIDAPPSD_ADDRESS"
|
|
71
71
|
GRIDAPPSD_PORT = "GRIDAPPSD_PORT"
|
|
72
72
|
GRIDAPPSD_PASS = "GRIDAPPSD_PASSWORD"
|
|
73
|
+
GRIDAPPSD_HEARTBEAT = "GRIDAPPSD_HEARTBEAT"
|
|
73
74
|
|
|
74
75
|
|
|
75
76
|
class TimeoutError(Exception):
|
|
@@ -119,6 +120,8 @@ class GOSS(object):
|
|
|
119
120
|
|
|
120
121
|
if not self.__user__ or not self.__pass__:
|
|
121
122
|
raise ValueError("Invalid username/password specified.")
|
|
123
|
+
|
|
124
|
+
self._heartbeat = int(os.environ.get(GRIDAPPSD_ENV_ENUM.GRIDAPPSD_HEARTBEAT.value, 4000))
|
|
122
125
|
self._conn = None
|
|
123
126
|
self._ids = set()
|
|
124
127
|
self._topic_set = set()
|
|
@@ -306,7 +309,7 @@ class GOSS(object):
|
|
|
306
309
|
# send request to token topic
|
|
307
310
|
tokenTopic = "/topic/pnnl.goss.token.topic"
|
|
308
311
|
|
|
309
|
-
tmpConn = Connection([(self.stomp_address, self.stomp_port)])
|
|
312
|
+
tmpConn = Connection([(self.stomp_address, self.stomp_port)], heartbeats=(self._heartbeat, self._heartbeat))
|
|
310
313
|
if self._override_thread_fc is not None:
|
|
311
314
|
tmpConn.transport.override_threading(self._override_thread_fc)
|
|
312
315
|
tmpConn.connect(self.__user__, self.__pass__, wait=True)
|
|
@@ -349,7 +352,7 @@ class GOSS(object):
|
|
|
349
352
|
sleep(1)
|
|
350
353
|
iter += 1
|
|
351
354
|
|
|
352
|
-
self._conn = Connection([(self.stomp_address, self.stomp_port)])
|
|
355
|
+
self._conn = Connection([(self.stomp_address, self.stomp_port)], heartbeats=(self._heartbeat, self._heartbeat))
|
|
353
356
|
if self._override_thread_fc is not None:
|
|
354
357
|
self._conn.transport.override_threading(self._override_thread_fc)
|
|
355
358
|
try:
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{gridappsd_python-2025.3.2a4 → gridappsd_python-2025.3.2a6}/gridappsd/field_interface/__init__.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|