Skip to content

Commit

Permalink
Slight cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
joshop authored and bhatele committed Oct 9, 2023
1 parent 62ca889 commit 4fada83
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions pipit/util/test_generator.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
import random
import textwrap
import pandas as pd
import numpy as np


class FakeNode:
Expand Down Expand Up @@ -62,7 +61,6 @@ def choose_random_node(self):
if not self.children:
return self
rng = random.random()
total = 0
for child in self.children.values():
weight = child.total_nodes / self.total_nodes
if rng < weight:
Expand Down Expand Up @@ -272,7 +270,6 @@ def add_fake_mpi_events(trees, num_pairs):
"""
planned_evts = []
# choose times for events to happen
last_proc = -1
maxtime = min([t.inc_time for t in trees])
for i in range(2 * num_pairs):
planned_evts.append(random.random() * maxtime)
Expand Down

0 comments on commit 4fada83

Please sign in to comment.