Skip to content

Commit e304102

Browse files
committed
Slight cleanup
1 parent d9012e2 commit e304102

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

pipit/util/test_generator.py

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
import random
22
import textwrap
33
import pandas as pd
4-
import numpy as np
54

65

76
class FakeNode:
@@ -62,7 +61,6 @@ def choose_random_node(self):
6261
if not self.children:
6362
return self
6463
rng = random.random()
65-
total = 0
6664
for child in self.children.values():
6765
weight = child.total_nodes / self.total_nodes
6866
if rng < weight:
@@ -272,7 +270,6 @@ def add_fake_mpi_events(trees, num_pairs):
272270
"""
273271
planned_evts = []
274272
# choose times for events to happen
275-
last_proc = -1
276273
maxtime = min([t.inc_time for t in trees])
277274
for i in range(2 * num_pairs):
278275
planned_evts.append(random.random() * maxtime)

0 commit comments

Comments
 (0)