Skip to content

Commit

Permalink
C API updates to enums for HELICS 3.5.1 release
Browse files Browse the repository at this point in the history
  • Loading branch information
nightlark committed Mar 25, 2024
1 parent 3e8538a commit 36f3aee
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions helics/capi.py
Original file line number Diff line number Diff line change
Expand Up @@ -278,6 +278,7 @@ class HelicsFederateFlag(IntEnum):
- **SINGLE_THREAD_FEDERATE**
- **MULTI_THREAD_CORE**
- **SINGLE_THREAD_CORE**
- **REENTRANT**
- **IGNORE_TIME_MISMATCH_WARNINGS**
- **STRICT_CONFIG_CHECKING**
- **USE_JSON_SERIALIZATION**
Expand Down Expand Up @@ -315,6 +316,8 @@ class HelicsFederateFlag(IntEnum):
MULTI_THREAD_CORE = 28
# flag indicating use of a single threaded core
SINGLE_THREAD_CORE = 29
# flag used to specify that a federate connection can be reentrant
REENTRANT = 38
# used to not display warnings on mismatched requested times
IGNORE_TIME_MISMATCH_WARNINGS = 67
# specify that checking on configuration files should be strict and throw and error on any invalid values
Expand Down Expand Up @@ -345,6 +348,7 @@ class HelicsFederateFlag(IntEnum):
HELICS_FLAG_SINGLE_THREAD_FEDERATE = HelicsFederateFlag.SINGLE_THREAD_FEDERATE
HELICS_FLAG_MULTI_THREAD_CORE = HelicsFederateFlag.MULTI_THREAD_CORE
HELICS_FLAG_SINGLE_THREAD_CORE = HelicsFederateFlag.SINGLE_THREAD_CORE
HELICS_FLAG_REENTRANT = HelicsFederateFlag.REENTRANT
HELICS_FLAG_IGNORE_TIME_MISMATCH_WARNINGS = HelicsFederateFlag.IGNORE_TIME_MISMATCH_WARNINGS
HELICS_FLAG_STRICT_CONFIG_CHECKING = HelicsFederateFlag.STRICT_CONFIG_CHECKING
HELICS_FLAG_USE_JSON_SERIALIZATION = HelicsFederateFlag.USE_JSON_SERIALIZATION
Expand All @@ -367,6 +371,7 @@ class HelicsFederateFlag(IntEnum):
helics_flag_single_thread_federate = HelicsFederateFlag.SINGLE_THREAD_FEDERATE
helics_flag_multi_thread_core = HelicsFederateFlag.MULTI_THREAD_CORE
helics_flag_single_thread_core = HelicsFederateFlag.SINGLE_THREAD_CORE
helics_flag_reentrant = HelicsFederateFlag.REENTRANT
helics_flag_ignore_time_mismatch_warnings = HelicsFederateFlag.IGNORE_TIME_MISMATCH_WARNINGS
helics_flag_strict_config_checking = HelicsFederateFlag.STRICT_CONFIG_CHECKING
helics_flag_use_json_serialization = HelicsFederateFlag.USE_JSON_SERIALIZATION
Expand Down Expand Up @@ -690,6 +695,7 @@ class HelicsHandleOption(IntEnum):
- **SINGLE_CONNECTION_ONLY**
- **MULTIPLE_CONNECTIONS_ALLOWED**
- **BUFFER_DATA**
- **RECONNECTABLE**
- **STRICT_TYPE_CHECKING**
- **RECEIVE_ONLY**
- **SOURCE_ONLY**
Expand All @@ -708,6 +714,7 @@ class HelicsHandleOption(IntEnum):
SINGLE_CONNECTION_ONLY = 407 # HelicsHandleOptions
MULTIPLE_CONNECTIONS_ALLOWED = 409 # HelicsHandleOptions
BUFFER_DATA = 411 # HelicsHandleOptions
RECONNECTABLE = 412 # HelicsHandleOptions
STRICT_TYPE_CHECKING = 414 # HelicsHandleOptions
RECEIVE_ONLY = 422 # HelicsHandleOptions
SOURCE_ONLY = 423 # HelicsHandleOptions
Expand All @@ -726,6 +733,7 @@ class HelicsHandleOption(IntEnum):
HELICS_HANDLE_OPTION_SINGLE_CONNECTION_ONLY = HelicsHandleOption.SINGLE_CONNECTION_ONLY
HELICS_HANDLE_OPTION_MULTIPLE_CONNECTIONS_ALLOWED = HelicsHandleOption.MULTIPLE_CONNECTIONS_ALLOWED
HELICS_HANDLE_OPTION_BUFFER_DATA = HelicsHandleOption.BUFFER_DATA
HELICS_HANDLE_OPTION_RECONNECTABLE = HelicsHandleOption.RECONNECTABLE
HELICS_HANDLE_OPTION_STRICT_TYPE_CHECKING = HelicsHandleOption.STRICT_TYPE_CHECKING
HELICS_HANDLE_OPTION_RECEIVE_ONLY = HelicsHandleOption.RECEIVE_ONLY
HELICS_HANDLE_OPTION_SOURCE_ONLY = HelicsHandleOption.SOURCE_ONLY
Expand All @@ -743,6 +751,7 @@ class HelicsHandleOption(IntEnum):
helics_handle_option_single_connection_only = HelicsHandleOption.SINGLE_CONNECTION_ONLY
helics_handle_option_multiple_connections_allowed = HelicsHandleOption.MULTIPLE_CONNECTIONS_ALLOWED
helics_handle_option_buffer_data = HelicsHandleOption.BUFFER_DATA
helics_handle_option_reconnectable = HelicsHandleOption.RECONNECTABLE
helics_handle_option_strict_type_checking = HelicsHandleOption.STRICT_TYPE_CHECKING
helics_handle_option_receive_only = HelicsHandleOption.RECEIVE_ONLY
helics_handle_option_source_only = HelicsHandleOption.SOURCE_ONLY
Expand Down

0 comments on commit 36f3aee

Please sign in to comment.