Skip to content

Commit fc1ff1a

Browse files
committed
Minor tweaks to docstrings; missing enum in Loads.
1 parent 323aa2e commit fc1ff1a

File tree

2 files changed

+6
-3
lines changed

2 files changed

+6
-3
lines changed

dss/ILoads.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -168,7 +168,7 @@ def Model(self) -> LoadModels:
168168
169169
Original COM help: https://opendss.epri.com/Model1.html
170170
'''
171-
return self._check_for_error(self._lib.Loads_Get_Model())
171+
return self._check_for_error(LoadModels(self._lib.Loads_Get_Model()))
172172

173173
@Model.setter
174174
def Model(self, Value: Union[int, LoadModels]):
@@ -450,7 +450,8 @@ def kva(self, Value: float):
450450

451451
@property
452452
def kvar(self) -> float:
453-
'''Reactive power in kvar for active Load. If set, updates PF based on present kW.
453+
'''
454+
Reactive power in kvar for active Load. If set, updates PF based on present kW.
454455
455456
Original COM help: https://opendss.epri.com/kvar1.html
456457
'''

dss/ISettings.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,9 @@ class ISettings(Base):
3434
@property
3535
def AllowDuplicates(self) -> bool:
3636
'''
37-
{True | False*} Designates whether to allow duplicate names of objects
37+
Designates whether to allow duplicate names of objects
38+
39+
False by default.
3840
3941
**NOTE**: for DSS-Extensions, we are considering removing this option in a future
4042
release since it has performance impacts even when not used.

0 commit comments

Comments
 (0)