Skip to content

Commit

Permalink
Remove stacklevel from warning
Browse files Browse the repository at this point in the history
  • Loading branch information
mauicv committed Apr 24, 2023
1 parent ef8afe8 commit d98f9af
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion alibi_detect/utils/visualize.py
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ def plot_feature_outlier_image(od_preds: Dict,
instance_ids = instance_ids[:n_instances]

if outliers_only and n_instances == 0:
warnings.warn('No outliers found!', UserWarning, stacklevel=3)
warnings.warn('No outliers found!', UserWarning)
return

n_cols = 2
Expand Down

0 comments on commit d98f9af

Please sign in to comment.