Skip to content

Commit

Permalink
fixing bug for ride through trip for the voltage ride through controller
Browse files Browse the repository at this point in the history
  • Loading branch information
AadilLatif committed May 22, 2024
1 parent 3d2162f commit 323b090
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ build-backend = "hatchling.build"

[project]
name = "NREL-pydss"
version = "3.1.5"
version = "3.1.6"
description = "A high-level python interface for OpenDSS"
readme = "README.md"
license = "BSD-3-Clause"
Expand Down
2 changes: 1 addition & 1 deletion src/pydss/__init__.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
__version__ = "3.1.5"
__version__ = "3.1.6"

from pydss.utils.timing_utils import timer_stats_collector
from . import *
4 changes: 2 additions & 2 deletions src/pydss/pyControllers/Controllers/PvVoltageRideThru.py
Original file line number Diff line number Diff line change
Expand Up @@ -402,15 +402,15 @@ def _trip(self, Deadtime, time2Pmax, forceTrip, permissive_to_trip=False):
u_in = max(u_in) / u_base if self._voltage_calc_mode == VoltageCalcModes.MAX else sum(u_in) / (u_base * len(u_in))

if self._is_connected or forceTrip:
self._controlled_element.SetParameter('enabled', False)
self._controlled_element.SetParameter('kw', 0)

self._is_connected = False
self._tripped_start_time = self.__dss_solver.GetDateTime()
self._tripped_p_max_delay = time2Pmax
self._tripped_dead_time = Deadtime

elif permissive_to_trip:
self._controlled_element.SetParameter('enabled', False)
self._controlled_element.SetParameter('kw', 0)

self._is_connected = False
self._tripped_start_time = self.__dss_solver.GetDateTime()
Expand Down

0 comments on commit 323b090

Please sign in to comment.