gridappsd-python 2025.3.2a5__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.
Files changed (19) hide show
  1. {gridappsd_python-2025.3.2a5 → gridappsd_python-2025.3.2a6}/PKG-INFO +1 -1
  2. {gridappsd_python-2025.3.2a5 → gridappsd_python-2025.3.2a6}/gridappsd/goss.py +5 -2
  3. {gridappsd_python-2025.3.2a5 → gridappsd_python-2025.3.2a6}/pyproject.toml +1 -1
  4. {gridappsd_python-2025.3.2a5 → gridappsd_python-2025.3.2a6}/README.md +0 -0
  5. {gridappsd_python-2025.3.2a5 → gridappsd_python-2025.3.2a6}/gridappsd/__init__.py +0 -0
  6. {gridappsd_python-2025.3.2a5 → gridappsd_python-2025.3.2a6}/gridappsd/__main__.py +0 -0
  7. {gridappsd_python-2025.3.2a5 → gridappsd_python-2025.3.2a6}/gridappsd/app_registration.py +0 -0
  8. {gridappsd_python-2025.3.2a5 → gridappsd_python-2025.3.2a6}/gridappsd/difference_builder.py +0 -0
  9. {gridappsd_python-2025.3.2a5 → gridappsd_python-2025.3.2a6}/gridappsd/docker_handler.py +0 -0
  10. {gridappsd_python-2025.3.2a5 → gridappsd_python-2025.3.2a6}/gridappsd/field_interface/__init__.py +0 -0
  11. {gridappsd_python-2025.3.2a5 → gridappsd_python-2025.3.2a6}/gridappsd/gridappsd.py +0 -0
  12. {gridappsd_python-2025.3.2a5 → gridappsd_python-2025.3.2a6}/gridappsd/houses.py +0 -0
  13. {gridappsd_python-2025.3.2a5 → gridappsd_python-2025.3.2a6}/gridappsd/json_extension.py +0 -0
  14. {gridappsd_python-2025.3.2a5 → gridappsd_python-2025.3.2a6}/gridappsd/loghandler.py +0 -0
  15. {gridappsd_python-2025.3.2a5 → gridappsd_python-2025.3.2a6}/gridappsd/register_app.py +0 -0
  16. {gridappsd_python-2025.3.2a5 → gridappsd_python-2025.3.2a6}/gridappsd/simulation.py +0 -0
  17. {gridappsd_python-2025.3.2a5 → gridappsd_python-2025.3.2a6}/gridappsd/timeseries.py +0 -0
  18. {gridappsd_python-2025.3.2a5 → gridappsd_python-2025.3.2a6}/gridappsd/topics.py +0 -0
  19. {gridappsd_python-2025.3.2a5 → gridappsd_python-2025.3.2a6}/gridappsd/utils.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.3
2
2
  Name: gridappsd-python
3
- Version: 2025.3.2a5
3
+ Version: 2025.3.2a6
4
4
  Summary: A GridAPPS-D Python Adapter
5
5
  License: BSD-3-Clause
6
6
  Keywords: gridappsd,grid,activemq,powergrid,simulation,library
@@ -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:
@@ -1,6 +1,6 @@
1
1
  [tool.poetry]
2
2
  name = "gridappsd-python"
3
- version = "2025.3.2a5"
3
+ version = "2025.3.2a6"
4
4
  description = "A GridAPPS-D Python Adapter"
5
5
  authors = [
6
6
  "C. Allwardt <3979063+craig8@users.noreply.github.com>",