forked from IPKM/nmreval
removed __name__ == __main__
This commit is contained in:
@ -14,10 +14,6 @@ from ..utils import NUMBER_RE
|
||||
|
||||
PointLike = TypeVar('PointLike', bound='Points')
|
||||
|
||||
"""
|
||||
This is a test for all and everything
|
||||
"""
|
||||
|
||||
|
||||
class Points:
|
||||
"""
|
||||
@ -514,11 +510,19 @@ class Points:
|
||||
|
||||
return self
|
||||
|
||||
def cut(self, *limits):
|
||||
if len(limits) != 2:
|
||||
def cut(self, low_lim=None, high_lim=None):
|
||||
"""
|
||||
Cut
|
||||
Args:
|
||||
low_lim:
|
||||
high_lim:
|
||||
|
||||
Returns:
|
||||
|
||||
"""
|
||||
if low_lim is None and high_lim is None:
|
||||
raise ValueError('Two arguments are needed')
|
||||
|
||||
low_lim, high_lim = limits
|
||||
if low_lim is None:
|
||||
low_lim = np.min(self._x)
|
||||
|
||||
|
Reference in New Issue
Block a user