Skip to content

Commit

Permalink
fix error when trying to find out if load needs power and load is on …
Browse files Browse the repository at this point in the history
…an other grid
  • Loading branch information
vfinel committed Apr 23, 2024
1 parent a99e9d6 commit 6d913cd
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion printGridInfo.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,8 @@ def printGridInfo(grid, cablesDict, phaseBalance, hasNoPhase, dlist):

print('\nLoads not connected to a cable:')
for load in grid.keys():
if (grid[load]['_cable'] == []) and not (grid[load]=='generator') and any(grid[load]['power']>0):
needsPower = bool( np.double(grid[load]['power']>0).sum() )
if (grid[load]['_cable'] == []) and not (grid[load]=='generator') and needsPower:
print(f'\t{load}')

print(f"\nlist of loads on the spreadsheet that don't have a phase assigned: \n\t{hasNoPhase} \n ")
Expand Down

0 comments on commit 6d913cd

Please sign in to comment.