@@ -53,7 +53,9 @@ def _group_edges(edges_lst: list) -> list:
5353 return total_lst
5454
5555
56- def _get_source (nodes_dict : dict , delayed_object_dict : dict , source : str , source_handle : str ):
56+ def _get_source (
57+ nodes_dict : dict , delayed_object_dict : dict , source : str , source_handle : str
58+ ):
5759 if source in delayed_object_dict .keys () and source_handle is not None :
5860 return (
5961 delayed_object_dict [source ].__getattr__ ("output" ).__getattr__ (source_handle )
@@ -64,7 +66,9 @@ def _get_source(nodes_dict: dict, delayed_object_dict: dict, source: str, source
6466 return nodes_dict [source ]
6567
6668
67- def _get_delayed_object_dict (total_lst : list , nodes_dict : dict , source_handle_dict : dict , pyiron_project : Project ) -> dict :
69+ def _get_delayed_object_dict (
70+ total_lst : list , nodes_dict : dict , source_handle_dict : dict , pyiron_project : Project
71+ ) -> dict :
6872 delayed_object_dict = {}
6973 for item in total_lst :
7074 key , input_dict = item
@@ -175,7 +179,9 @@ def _get_connection_dict(delayed_object_updated_dict: dict, match_dict: dict):
175179 return connection_dict , lookup_dict
176180
177181
178- def _get_edges_dict (edges_lst : list , nodes_dict : dict , connection_dict : dict , lookup_dict : dict ):
182+ def _get_edges_dict (
183+ edges_lst : list , nodes_dict : dict , connection_dict : dict , lookup_dict : dict
184+ ):
179185 edges_dict_lst = []
180186 existing_connection_lst = []
181187 for ep in edges_lst :
@@ -217,7 +223,7 @@ def _get_edges_dict(edges_lst: list, nodes_dict: dict, connection_dict: dict, lo
217223 return edges_dict_lst
218224
219225
220- def load_workflow_json (file_name : str , project : Optional [Project ]= None ):
226+ def load_workflow_json (file_name : str , project : Optional [Project ] = None ):
221227 if project is None :
222228 project = Project ("." )
223229
@@ -248,7 +254,9 @@ def load_workflow_json(file_name: str, project: Optional[Project]=None):
248254 return list (delayed_object_dict .values ())
249255
250256
251- def write_workflow_json (delayed_object : DelayedObject , file_name : str = "workflow.json" ):
257+ def write_workflow_json (
258+ delayed_object : DelayedObject , file_name : str = "workflow.json"
259+ ):
252260 nodes_dict , edges_lst = delayed_object .get_graph ()
253261 nodes_dict , edges_lst = _remove_server_obj (
254262 nodes_dict = nodes_dict , edges_lst = edges_lst
0 commit comments