Skip to content

Commit

Permalink
codacy
Browse files Browse the repository at this point in the history
  • Loading branch information
dbrakenhoff committed Nov 1, 2023
1 parent 3c434f6 commit 38e6a49
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions pastastore/store.py
Original file line number Diff line number Diff line change
Expand Up @@ -366,21 +366,21 @@ def get_signatures(
raise e

try:
l = ps.stats.signatures.summary(s.squeeze(), signatures)
i_signatures = ps.stats.signatures.summary(s.squeeze(), signatures)
except Exception as e:
if ignore_errors:
l = []
i_signatures = []
for signature in signatures:
try:
sign_val = getattr(ps.stats.signatures, signature)(
s.squeeze()
)
except:
except Exception as _:
sign_val = np.nan
l.append(sign_val)
i_signatures.append(sign_val)
else:
raise e
signatures_df.loc[name, signatures] = l
signatures_df.loc[name, signatures] = i_signatures

return signatures_df

Expand Down

0 comments on commit 38e6a49

Please sign in to comment.