You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Operating system and version: tested in Google CoLab
OpenDSSDirect.py version number:
DSS C-API Library version 0.14.5 revision 87d85c2622c8281b92255335bc7c09b11191b21d based on OpenDSS SVN 3723 [FPC 3.2.2] (64-bit build) MVMULT INCREMENTAL_Y CONTEXT_API PM 20240329033721; License Status: Open
DSS-Python version: 0.15.7
OpenDSSDirect.py version: 0.9.4
Bug
This might be an issue in the source code for OpenDSS, where it checks if PTphase is less than the number of phases, but I just wanted to bring it to your attention.
The problem arises when specifying the CapControl PTPhase value to 3 in a three phase model. With PTPhase=3 in the toy model below the CapControl seems to be ignored. If you change PTphase to 1 or 2 then the States will be [1], even though the load is balanced and the voltage is the same (before control) on all three phases.
I moved the phase checks so they work with any control type, so you'll get an error in the next release (since this is not urgent, we'll wait a week or so before releasing new versions).
Although the current version shouldn't cause memory corruption, it is reading invalid data if you use a phase number greater than the available phases.
Versions
DSS C-API Library version 0.14.5 revision 87d85c2622c8281b92255335bc7c09b11191b21d based on OpenDSS SVN 3723 [FPC 3.2.2] (64-bit build) MVMULT INCREMENTAL_Y CONTEXT_API PM 20240329033721; License Status: Open
DSS-Python version: 0.15.7
OpenDSSDirect.py version: 0.9.4
Bug
This might be an issue in the source code for OpenDSS, where it checks if PTphase is less than the number of phases, but I just wanted to bring it to your attention.
The problem arises when specifying the CapControl PTPhase value to 3 in a three phase model. With
PTPhase=3
in the toy model below the CapControl seems to be ignored. If you changePTphase
to 1 or 2 then theStates
will be[1]
, even though the load is balanced and the voltage is the same (before control) on all three phases.The text was updated successfully, but these errors were encountered: