From 0e781dd2247b2440235f39ed9169cf0d42948ae7 Mon Sep 17 00:00:00 2001 From: Sam Crow Date: Mon, 1 May 2023 17:05:07 -0700 Subject: [PATCH] cast valid addresses to list for python 3.11 requirement --- compiler/characterizer/functional.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/compiler/characterizer/functional.py b/compiler/characterizer/functional.py index 78a44530..ddf0d588 100644 --- a/compiler/characterizer/functional.py +++ b/compiler/characterizer/functional.py @@ -363,7 +363,7 @@ class functional(simulation): def gen_addr(self): """ Generates a random address value to write to. """ if self.valid_addresses: - random_value = random.sample(self.valid_addresses, 1)[0] + random_value = random.sample(list(self.valid_addresses), 1)[0] else: random_value = random.randint(0, self.max_address) addr_bits = binary_repr(random_value, self.bank_addr_size)