Skip to content

Commit

Permalink
Reformat code in cdc
Browse files Browse the repository at this point in the history
  • Loading branch information
titusz committed Jan 30, 2022
1 parent 87570e2 commit 3c280a2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion iscc_core/cdc.py
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ def get_params(avg_size: int) -> tuple:
:returns: Tuple of (min_size, max_size, center_size, mask_s, mask_l).
"""
ceil_div = lambda x, y: (x + y - 1) // y
mask = lambda b: 2 ** b - 1
mask = lambda b: 2**b - 1
min_size = avg_size // 4
max_size = avg_size * 8
offset = min_size + ceil_div(min_size, 2)
Expand Down

0 comments on commit 3c280a2

Please sign in to comment.