Skip to content

Commit

Permalink
Code refactoring for PEP8 compliance
Browse files Browse the repository at this point in the history
  • Loading branch information
vincenzocaputo committed Apr 2, 2024
1 parent a10bfbd commit da7e3b3
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions pystixview/pystixview.py
Original file line number Diff line number Diff line change
Expand Up @@ -87,9 +87,11 @@ class PySTIXView:
def __init__(self, notebook: bool = False):

self.__notebook = notebook
self.__network = None
self.__icons_path = Path(os.path.dirname(__file__)) / 'icons'
self.__graph = {
'nodes': dict(),
'edges': list()
'nodes': {},
'edges': []
}
self.__custom_types = {}

Expand Down Expand Up @@ -438,8 +440,6 @@ def _generate_graph(self,
notebook=self.__notebook,
select_menu=select_menu,
filter_menu=filter_menu)
self.__icons_path = Path(os.path.dirname(__file__)) / 'icons'


self.__network.barnes_hut(gravity=-5000,
central_gravity=0,
Expand Down Expand Up @@ -508,7 +508,7 @@ def _generate_graph(self,

return str(bhtml)

def show_graph(self,
def show_graph(self,
width: str,
height: str,
select_menu: bool = False,
Expand Down Expand Up @@ -554,7 +554,7 @@ def show_graph(self,
return HTML(html_graph)
return html_graph

def save_graph(self, name,
def save_graph(self, name,
width: str,
height: str,
select_menu: bool = False,
Expand Down

0 comments on commit da7e3b3

Please sign in to comment.