We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d9012e2 commit e304102Copy full SHA for e304102
pipit/util/test_generator.py
@@ -1,7 +1,6 @@
1
import random
2
import textwrap
3
import pandas as pd
4
-import numpy as np
5
6
7
class FakeNode:
@@ -62,7 +61,6 @@ def choose_random_node(self):
62
61
if not self.children:
63
return self
64
rng = random.random()
65
- total = 0
66
for child in self.children.values():
67
weight = child.total_nodes / self.total_nodes
68
if rng < weight:
@@ -272,7 +270,6 @@ def add_fake_mpi_events(trees, num_pairs):
272
270
"""
273
271
planned_evts = []
274
# choose times for events to happen
275
- last_proc = -1
276
maxtime = min([t.inc_time for t in trees])
277
for i in range(2 * num_pairs):
278
planned_evts.append(random.random() * maxtime)
0 commit comments