Skip to content

Commit

Permalink
Merge pull request #36 from hyruuk/master
Browse files Browse the repository at this point in the history
fixed deprecated use of np.bool
  • Loading branch information
pog87 authored May 16, 2023
2 parents 23debd9 + 3e940a1 commit 27260b4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions ptitprince/PtitPrince.py
Original file line number Diff line number Diff line change
Expand Up @@ -42,10 +42,10 @@ def draw_stripplot(self, ax, kws):
if self.plot_hues is None or not self.dodge:

if self.hue_names is None:
hue_mask = np.ones(group_data.size, np.bool)
hue_mask = np.ones(group_data.size, bool)
else:
hue_mask = np.array([h in self.hue_names
for h in self.plot_hues[i]], np.bool)
for h in self.plot_hues[i]], bool)

strip_data = group_data[hue_mask]
point_colors = np.asarray(self.point_colors[i][hue_mask])
Expand Down

0 comments on commit 27260b4

Please sign in to comment.