Skip to content

Commit

Permalink
Moving contains
Browse files Browse the repository at this point in the history
  • Loading branch information
looopTools committed Nov 4, 2023
1 parent 9638d53 commit b5fefa7
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions nptdms/tdms.py
Original file line number Diff line number Diff line change
Expand Up @@ -137,13 +137,6 @@ def __init__(self, file, raw_timestamps=False, memmap_dir=None, read_metadata_on
if not keep_open:
self._reader.close()

def __contains__(self, group_name):
""" Check if TDMS file contains groupp
:rtype: Boolean
"""
return group_name in self._groups

def groups(self):
"""Returns a list of the groups in this file
Expand Down Expand Up @@ -221,6 +214,13 @@ def __len__(self):
"""
return len(self._groups)

def __contains__(self, group_name):
""" Check if TDMS file contains groupp
:rtype: Boolean
"""
return group_name in self._groups

def __iter__(self):
""" Returns an iterator over the names of groups in this file
"""
Expand Down

0 comments on commit b5fefa7

Please sign in to comment.