Skip to content

Commit

Permalink
suppress DeprecationWarning of pandas
Browse files Browse the repository at this point in the history
pandas-dev/pandas#40245
gave up using Series.between() as we still cannot drop python2 support
  • Loading branch information
keitaroyam committed Feb 1, 2023
1 parent 058b2bf commit 85885a3
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion servalcat/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,4 @@
Mozilla Public License, version 2.0; see LICENSE.
"""

__version__ = '0.3.6'
__version__ = '0.3.7'
3 changes: 2 additions & 1 deletion servalcat/utils/hkl.py
Original file line number Diff line number Diff line change
Expand Up @@ -164,7 +164,8 @@ def copy(self, d_min=None, d_max=None):
else:
if d_min is None: d_min = 0
if d_max is None: d_max = float("inf")
sel = self.d_spacings().between(d_min, d_max, inclusive=True)
d = self.d_spacings()
sel = (d >= d_min) & (d <= d_max)
df = self.df[sel].copy()
binned_df = None # no way to keep it

Expand Down

0 comments on commit 85885a3

Please sign in to comment.