"Reformatted per new black version"

This commit is contained in:
Alec Delaney 2022-03-29 18:19:18 -04:00
parent cac412615c
commit 5aa37e1a46
2 changed files with 2 additions and 2 deletions

View file

@ -95,7 +95,7 @@ class Program: # pylint: disable=too-few-public-methods
if sideset_count == 0:
raise RuntimeError("No side_set count set")
sideset_value = int(instruction[-1])
if sideset_value >= 2 ** sideset_count:
if sideset_value >= 2**sideset_count:
raise RuntimeError("Sideset value too large")
delay |= sideset_value << (5 - sideset_count - sideset_enable)
delay |= sideset_enable << 4

View file

@ -19,7 +19,7 @@ length = 8000 // 440
# signed 16 bit
s16 = array.array("h", [0] * length)
for i in range(length):
s16[i] = int(math.sin(math.pi * 2 * i / length) * (2 ** 15))
s16[i] = int(math.sin(math.pi * 2 * i / length) * (2**15))
print(s16[i])
program = """