Skip to content

Commit

Permalink
minor bug fic for ridethru controller
Browse files Browse the repository at this point in the history
  • Loading branch information
AadilLatif committed May 29, 2024
1 parent 65dd56c commit 35d76f7
Showing 1 changed file with 4 additions and 4 deletions.
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 35d76f7

Please sign in to comment.