Skip to content

Commit

Permalink
more flake8
Browse files Browse the repository at this point in the history
  • Loading branch information
sjperkins committed Jan 29, 2024
1 parent 8ab1fa6 commit c3e9c12
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions africanus/experimental/rime/fused/specification.py
Original file line number Diff line number Diff line change
Expand Up @@ -336,7 +336,8 @@ def __init__(self, specification, terms=None, transformers=None):
"process_pool": pool
}

hash_elements = list(v for k, v in global_kw.items() if k != "process_pool")
hash_elements = list(v for k, v in global_kw.items()
if k != "process_pool")

for cls, cfg in zip(term_types, term_cfgs):
if cfg == "pq":
Expand Down Expand Up @@ -415,7 +416,8 @@ def __init__(self, specification, terms=None, transformers=None):

self.terms = terms
self.transformers = transformers
self.spec_hash = shake_256(str((freeze(hash_elements))).encode("utf-8")).hexdigest(16)
str_elements = str((freeze(hash_elements))).encode("utf-8")
self.spec_hash = shake_256(str_elements).hexdigest(16)

@staticmethod
def _finalise_pool(pool):
Expand Down

0 comments on commit c3e9c12

Please sign in to comment.