Skip to content

Commit

Permalink
Fix examples issue. #85
Browse files Browse the repository at this point in the history
  • Loading branch information
FrancoisJ committed Aug 26, 2020
1 parent 774ea03 commit 8053678
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion examples/Multi-Energies/Multi-Energies.ipynb
Git LFS file not shown
4 changes: 2 additions & 2 deletions examples/Network Investment/Network Investment.ipynb
Git LFS file not shown
2 changes: 1 addition & 1 deletion examples/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ def list_notebook(src: str) -> List[str]:
@click.option('--export', nargs=1, help='export notebooks to directory given')
def main(src: str, check: str, export: str):
for name in list_notebook(src):
print(name, ':', end='')
print('{:30}'.format(name), ':', end='')
nb = open_nb(name, src)
nb = execute(nb, name, src)
if check:
Expand Down
2 changes: 1 addition & 1 deletion hadar/analyzer/result.py
Original file line number Diff line number Diff line change
Expand Up @@ -612,7 +612,7 @@ def nodes(self, network: str = 'default') -> List[str]:
:param network: network selected
:return: nodes name
"""
return self.result.networks[network].nodes.keys()
return list(self.result.networks[network].nodes.keys())


class NetworkFluentAPISelector:
Expand Down

0 comments on commit 8053678

Please sign in to comment.