Skip to content

Commit

Permalink
minor bug fix for profiler
Browse files Browse the repository at this point in the history
  • Loading branch information
ZimpleX committed Jan 31, 2022
1 parent 3a8213a commit 54863fd
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions shaDow/profiler.py
Original file line number Diff line number Diff line change
Expand Up @@ -101,9 +101,10 @@ def profile(self) -> None:
elif mg == 'sizes':
adj = sb.adj_ens[e]
args = [adj.indptr, subg_sizes, 'global']
self.value_metrics['global'][e][mg].append(
getattr(self, f"_profile_{mg}")(*args)
)
if args is not None:
self.value_metrics['global'][e][mg].append(
getattr(self, f"_profile_{mg}")(*args)
)
# TODO handle local metrics

def summarize(self):
Expand Down

0 comments on commit 54863fd

Please sign in to comment.