Skip to content

Commit

Permalink
Minor tweaks to docstrings; missing enum in Loads.
Browse files Browse the repository at this point in the history
  • Loading branch information
PMeira committed Mar 18, 2024
1 parent 323aa2e commit fc1ff1a
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
5 changes: 3 additions & 2 deletions dss/ILoads.py
Original file line number Diff line number Diff line change
Expand Up @@ -168,7 +168,7 @@ def Model(self) -> LoadModels:
Original COM help: https://opendss.epri.com/Model1.html
'''
return self._check_for_error(self._lib.Loads_Get_Model())
return self._check_for_error(LoadModels(self._lib.Loads_Get_Model()))

@Model.setter
def Model(self, Value: Union[int, LoadModels]):
Expand Down Expand Up @@ -450,7 +450,8 @@ def kva(self, Value: float):

@property
def kvar(self) -> float:
'''Reactive power in kvar for active Load. If set, updates PF based on present kW.
'''
Reactive power in kvar for active Load. If set, updates PF based on present kW.
Original COM help: https://opendss.epri.com/kvar1.html
'''
Expand Down
4 changes: 3 additions & 1 deletion dss/ISettings.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,9 @@ class ISettings(Base):
@property
def AllowDuplicates(self) -> bool:
'''
{True | False*} Designates whether to allow duplicate names of objects
Designates whether to allow duplicate names of objects
False by default.
**NOTE**: for DSS-Extensions, we are considering removing this option in a future
release since it has performance impacts even when not used.
Expand Down

0 comments on commit fc1ff1a

Please sign in to comment.