Skip to content

Commit 78552a3

Browse files
committed
Tests: call some more basic functions (not checking results right now)
1 parent 11a35ed commit 78552a3

File tree

2 files changed

+11
-1
lines changed

2 files changed

+11
-1
lines changed

tests/test_alt.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -185,6 +185,7 @@
185185
if isinstance(c, EnergyMeterObjMixin):
186186
print('CalcCurrent', getattr(c, 'CalcCurrent'))
187187
print('AllocFactors', getattr(c, 'AllocFactors'))
188+
print('len(Sections)', len(c.Sections()))
188189
for funcname in [
189190
'TotalCustomers',
190191
'NumEndElements',

tests/test_alt_em.py

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,9 +46,11 @@
4646

4747
altdss(f'''
4848
solve
49-
RelCalc
5049
''')
50+
5151
m = altdss.EnergyMeter[0]
52+
m.DoReliabilityCalc(False)
53+
altdss.EnergyMeter.DoReliabilityCalc(False)
5254
#TODO: add error message in one of these to point that no relcalc was done beforehand
5355
print(m.NumSections())
5456
for section in m.Sections():
@@ -61,3 +63,10 @@
6163
print(m.SAIFI)
6264
print(m.SAIFIkW)
6365
print(m.CustInterrupts)
66+
67+
print(altdss.EnergyMeter.TotalCustomers())
68+
print(altdss.EnergyMeter.NumEndElements())
69+
print(altdss.EnergyMeter.NumSections())
70+
print(altdss.EnergyMeter.Totals())
71+
print(altdss.EnergyMeter.DIFilesAreOpen())
72+

0 commit comments

Comments
 (0)