Skip to content

Commit

Permalink
style: fixes codestyle for flake8 linter
Browse files Browse the repository at this point in the history
  • Loading branch information
nils-wisiol committed Jun 29, 2024
1 parent 3550337 commit da15c58
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pypuf/simulation/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -320,7 +320,7 @@ def __init__(self, weight_array: ndarray, transform: Union[str, Callable], combi
self.bias = bias if isinstance(bias, ndarray) else array(bias)

# Append bias values to weight array
assert self.bias.shape == (self.k, 1),\
assert self.bias.shape == (self.k, 1), \
'Expected bias to either have shape ({}, 1) or be a float, ' \
'but got an array with shape {} and value {}.'.format(self.k, self.bias.shape, self.bias)
self.weight_array = append(self.weight_array, self.bias, axis=1)
Expand Down Expand Up @@ -406,7 +406,7 @@ def ltf_eval(self, sub_challenges: ndarray) -> ndarray:
k, n = self.weight_array.shape
n -= 1

assert sub_challenges.shape[1:] == (k, n),\
assert sub_challenges.shape[1:] == (k, n), \
f'Sub-challenges given to ltf_eval had shape {sub_challenges.shape}, but shape (N, k, n) = ' \
f'(N, {k}, {n}) was expected.'

Expand Down

0 comments on commit da15c58

Please sign in to comment.