Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
21 commits
Select commit Hold shift + click to select a range
fddf403
Tweak ODD.py/DSS-Python integration
PMeira Jul 25, 2024
52e0f43
CircuitElement: document the layout of the arrays for sequence values…
PMeira Aug 14, 2024
61cf27a
CircuitElement: add default argument values for `IsOpen` , `Open`, `C…
PMeira Aug 15, 2024
4951915
ControlQueue: add type hints for ActionHandle
PMeira Aug 15, 2024
76a7086
Batch: add new function `iterate()` to return a special iterator (cla…
PMeira Aug 15, 2024
7e16153
CircuitElement: missing `CurrentsMagAng` in the object version (batch…
PMeira Aug 22, 2024
8dbbf7e
Batch: allow using names or objects directly to create (uniform) batches
PMeira Aug 22, 2024
07b64b8
Add `Settings.map_to_iterators()` to use iterators for new DSS object…
PMeira Sep 11, 2024
1cedf64
WIP: updates related to FastDSS
PMeira Sep 11, 2024
1fd7090
General update to the new style of API utils
PMeira Sep 12, 2024
9dd458d
MonitorObjMixin: add links to COM help for reference
PMeira Sep 13, 2024
f7e15f9
Batch: add some more type annotations
PMeira Oct 18, 2024
3ed0289
Update `_cls_idx` values, and docstrings, adding defaults and units.
PMeira Oct 28, 2024
c426014
Bus: Adjust PCElements to return CircuitElementBatch (since it includ…
PMeira May 26, 2025
d2a4699
Merge most changes from AltDSS engine v0.15 (and DSS-Python). Fuse up…
PMeira Feb 14, 2026
150d687
Enums: keep some older lower-case identifiers to avoid breaking compa…
PMeira Feb 16, 2026
0a0e177
Update project metadata, avoid virtualenv 21.
PMeira Feb 21, 2026
a3a4f56
Booleans: fix type signature in batches
PMeira Feb 23, 2026
96339fe
Metadata: specify DSS-Python and OpenDSSDirect.py versions for the beta
PMeira Feb 26, 2026
6c40273
Batches: add handling of Python generator expressions/functions.
PMeira Feb 26, 2026
247ffee
Enums: fix typo
PMeira Feb 27, 2026
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
197 changes: 119 additions & 78 deletions altdss/AltDSS.py

Large diffs are not rendered by default.

25 changes: 13 additions & 12 deletions altdss/ArrayProxy.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import numpy as np
from .enums import BatchOperation

class BatchFloat64ArrayProxy:
def __init__(self, batch, idx):
Expand Down Expand Up @@ -51,7 +52,7 @@ def __iadd__(self, other, flags=0):
self._lib.Batch_Float64(
*ptr_cnt,
self._idx,
self._lib.BatchOperation_Increment,
BatchOperation.Increment,
other,
flags
)
Expand All @@ -64,7 +65,7 @@ def __iadd__(self, other, flags=0):
batch._lib.Batch_Float64Array(
*ptr_cnt,
self._idx,
self._lib.BatchOperation_Increment,
BatchOperation.Increment,
data_ptr,
flags
)
Expand All @@ -91,7 +92,7 @@ def __imul__(self, other, flags=0):
self._lib.Batch_Float64(
*ptr_cnt,
self._idx,
self._lib.BatchOperation_Multiply,
BatchOperation.Multiply,
other,
flags
)
Expand All @@ -104,7 +105,7 @@ def __imul__(self, other, flags=0):
batch._lib.Batch_Float64Array(
*ptr_cnt,
self._idx,
self._lib.BatchOperation_Multiply,
BatchOperation.Multiply,
data_ptr,
flags
)
Expand All @@ -123,7 +124,7 @@ def __itruediv__(self, other, flags=0):
self._lib.Batch_Float64(
*ptr_cnt,
self._idx,
self._lib.BatchOperation_Divide,
BatchOperation.Divide,
other,
flags
)
Expand All @@ -136,7 +137,7 @@ def __itruediv__(self, other, flags=0):
batch._lib.Batch_Float64Array(
*ptr_cnt,
self._idx,
self._lib.BatchOperation_Divide,
BatchOperation.Divide,
data_ptr,
flags
)
Expand Down Expand Up @@ -202,7 +203,7 @@ def __iadd__(self, other, flags=0):
self._lib.Batch_Int32(
*ptr_cnt,
self._idx,
self._lib.BatchOperation_Increment,
BatchOperation.Increment,
other,
flags
)
Expand All @@ -215,7 +216,7 @@ def __iadd__(self, other, flags=0):
batch._lib.Batch_Int32Array(
*ptr_cnt,
self._idx,
self._lib.BatchOperation_Increment,
BatchOperation.Increment,
data_ptr,
flags
)
Expand All @@ -242,7 +243,7 @@ def __imul__(self, other, flags=0):
self._lib.Batch_Int32(
*ptr_cnt,
self._idx,
self._lib.BatchOperation_Multiply,
BatchOperation.Multiply,
other,
flags
)
Expand All @@ -255,7 +256,7 @@ def __imul__(self, other, flags=0):
batch._lib.Batch_Int32Array(
*ptr_cnt,
self._idx,
self._lib.BatchOperation_Multiply,
BatchOperation.Multiply,
data_ptr,
flags
)
Expand All @@ -274,7 +275,7 @@ def __ifloordiv__(self, other, flags=0):
self._lib.Batch_Int32(
*ptr_cnt,
self._idx,
self._lib.BatchOperation_Divide,
BatchOperation.Divide,
other,
flags
)
Expand All @@ -287,7 +288,7 @@ def __ifloordiv__(self, other, flags=0):
self._lib.Batch_Int32Array(
*ptr_cnt,
self._idx,
self._lib.BatchOperation_Divide,
BatchOperation.Divide,
data_ptr,
flags
)
Expand Down
Loading