Skip to content

Commit a20e001

Browse files
committed
pep8 adjustments to sdm/__init__.py
1 parent 8d2f874 commit a20e001

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

sdm/__init__.py

+4-3
Original file line numberDiff line numberDiff line change
@@ -309,7 +309,7 @@ def print_address(self, index):
309309
'''
310310
libsdm.counter_print(pointer(self), c_uint(index))
311311

312-
def add_bitstring(self, bs):
312+
def add_bitstring(self, index, bs):
313313
''' Add a bitstring to the counter of a hard-location.
314314
'''
315315
libsdm.counter_add_bitstring(pointer(self), c_uint(index), bs.bs_data)
@@ -353,7 +353,7 @@ def init_hex(cls, bits, hex_str):
353353
return self
354354

355355
@classmethod
356-
def init_b64(cls, b64):
356+
def init_b64(cls, bits, b64):
357357
''' Initialize a bitstring based on a base-64 string.
358358
'''
359359
self = cls(bits)
@@ -476,10 +476,12 @@ def op_or(self, other):
476476
def __eq__(self, other):
477477
return self.distance_to(other) == 0
478478

479+
479480
SDM_SCANNER_LINEAR = 1
480481
SDM_SCANNER_THREAD = 2
481482
SDM_SCANNER_OPENCL = 3
482483

484+
483485
class SDM(Structure):
484486
''' An SDM is a facade to manage a given AddressSpace and Counters.
485487
'''
@@ -579,4 +581,3 @@ def write_random_bitstrings(self, n):
579581
for _ in range(n):
580582
bs = Bitstring.init_random(self.bits)
581583
self.write(bs, bs)
582-

0 commit comments

Comments
 (0)