Skip to content

Commit

Permalink
Merge pull request #137 from Wainberg/master
Browse files Browse the repository at this point in the history
Fix overly broad conversion of warnings to errors
  • Loading branch information
brianhie authored Nov 28, 2022
2 parents 2def730 + 184acc4 commit fc8bff8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scanorama/scanorama.py
Original file line number Diff line number Diff line change
Expand Up @@ -757,7 +757,7 @@ def transform(curr_ds, curr_ref, ds_ind, ref_ind, sigma=SIGMA, cn=False,
bias = bias.toarray()

with warnings.catch_warnings():
warnings.filterwarnings('error')
warnings.filterwarnings('error', category=RuntimeWarning)
try:
avg_bias = batch_bias(curr_ds, match_ds, bias, sigma=sigma,
batch_size=batch_size)
Expand Down

0 comments on commit fc8bff8

Please sign in to comment.