You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
TdmsFile doesn't implement the context manager protocol (ie. the __enter__ and __exit__ methods), so it isn't supposed to be used in a with statement. You should just use:
TdmsFile doesn't implement the context manager protocol (ie. the enter
and exit methods), so it isn't supposed to be used in a with
statement. You should just use:
tdms_file = TdmsFile(dirpath + "" + datapath)
—
Reply to this email directly or view it on GitHub #17 (comment).
Hi Adam,
Windows 7, Python 3.4, latest npTDMS
Statement:
with TdmsFile(dirpath + "" + datapath) as tdms_file:
Causes @ execution:
AttributeError: exit
The text was updated successfully, but these errors were encountered: