1
0
forked from IPKM/nmreval

removed __name__ == __main__

This commit is contained in:
dominik
2022-03-24 20:24:28 +01:00
parent 73e4a2b4d9
commit a300182153
43 changed files with 97 additions and 568 deletions

View File

@ -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)