Skip to content

Commit

Permalink
Merge pull request #149 from NREL/al/ride_thru_controller_fix
Browse files Browse the repository at this point in the history
minor bug fix for ridethru controller
  • Loading branch information
AadilLatif authored May 29, 2024
2 parents 75ce661 + a954568 commit 6e9ffdd
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 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.6"
version = "3.1.7"
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.6"
__version__ = "3.1.7"

from pydss.utils.timing_utils import timer_stats_collector
from . import *
8 changes: 4 additions & 4 deletions src/pydss/pyControllers/Controllers/PvVoltageRideThru.py
Original file line number Diff line number Diff line change
Expand Up @@ -49,14 +49,14 @@ def __init__(self, pv_object, settings, dss_instance, elm_object_list, dss_solve
self.phase = None

# Initializing the model
pv_object.SetParameter('kvar', 0)
pv_object.SetParameter('kva', self.model.kva)
self._p_rated = float(pv_object.SetParameter('kW', self.model.max_kw))
#pv_object.SetParameter('kvar', 0)
#pv_object.SetParameter('kva', self.model.kva)
self._p_rated = float(pv_object.GetParameter('kW'))

# MISC settings
self._trip_deadtime_sec = self.model.reconnect_deadtime_sec
self._time_to_p_max_sec = self.model.reconnect_pmax_time_sec
self._p_rated = self.model.max_kw
#self._p_rated = self.model.max_kw
self._voltage_calc_mode = self.model.voltage_calc_mode
# initialize deadtimes and other variables
self._initialize_ride_through_settings()
Expand Down

0 comments on commit 6e9ffdd

Please sign in to comment.