Skip to content

Commit 95eb02f

Browse files
committed
Located error baseline generation, Warning added
1 parent ef026e1 commit 95eb02f

1 file changed

Lines changed: 2 additions & 4 deletions

File tree

src/diffupy/utils.py

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -245,12 +245,10 @@ def load_json_file(path: str) -> DiGraph:
245245

246246

247247
def from_pickle(input_path):
248-
"""Read network from pickle."""
248+
"""Read from pickle file."""
249249
with open(input_path, 'rb') as f:
250250
unpickler = pickle.Unpickler(f)
251-
background_mat = unpickler.load()
252-
253-
return background_mat
251+
return unpickler.load()
254252

255253

256254
def process_network_from_cli(path: str) -> nx.Graph:

0 commit comments

Comments
 (0)