Skip to content

Commit 4885c34

Browse files
committed
Enums: add new BatchOperation; include Broadcast in SetterFlags.
1 parent 8559ef4 commit 4885c34

1 file changed

Lines changed: 23 additions & 2 deletions

File tree

dss_python_backend/enums.py

Lines changed: 23 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# SPDX-FileCopyrightText: (C) 2023-2025 Paulo Meira & contributors to DSS-Extensions
1+
# SPDX-FileCopyrightText: (C) 2023-2026 Paulo Meira & contributors to DSS-Extensions
22
# SPDX-License-Identifier: BSD-3
33

44
try:
@@ -663,11 +663,20 @@ class SetterFlags(IntFlag):
663663
- Null pointers for strings (in this case, use a `"\\0"` string for empty strings)
664664
"""
665665

666+
Broadcast = 0x00000010
667+
"""
668+
In some specific array(-like) properties, a single scalar value can be broadcast to
669+
all elements in the array.
670+
"""
671+
666672
AllowAllConductors = 0x40000000
667673
"""
674+
**Deprecated**
675+
668676
Used internally for the "Wires" property ("Conductors").
669677
This was left public in case someone tries to implement some internal aspects in
670-
external functions.
678+
external functions. EPRI's OpenDSS introduced a similar `Conductors` property,
679+
so this flag is not required anymore in modern versions of AltDSS.
671680
"""
672681

673682

@@ -1100,11 +1109,23 @@ class VCCSNonRMSVariables(IntEnum):
11001109
'''Hout'''
11011110

11021111

1112+
class BatchOperation(IntEnum):
1113+
'''
1114+
AltDSS Batch Operations
1115+
1116+
*These are not typically used by end-users.*
1117+
'''
1118+
Set = 0
1119+
Multiply = 1
1120+
Increment = 2
1121+
Divide = 3
1122+
11031123

11041124
__all__ = [
11051125
'ActionCodes',
11061126
'AltDSSEvent',
11071127
'AutoAddTypes',
1128+
'BatchOperation',
11081129
'CapControlModes',
11091130
'CktModels',
11101131
'ControlModes',

0 commit comments

Comments
 (0)