Comments (3)
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)
from nptdms.
Adam,
Good to now.
How do I close the isssue?
Thanks,
Bob
2014-07-01 3:41 GMT+02:00 Adam Reeve [email protected]:
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).
from nptdms.
There should just be a close button on this GitHub issue page, but I can close it.
Cheers,
Adam
from nptdms.
Related Issues (20)
- not able to read heavily fragmented TDMS (v1.6.0) HOT 2
- Reading TDMs Files HOT 2
- Printing the values of all tdms files in the same directory using the for loop in python
- Read data with specific numpy floating dtype
- Numpy Deprecation Warning HOT 1
- read error UTF8 HOT 5
- Problem with reading SpooledTemporaryFile HOT 2
- Error in loading image files HOT 2
- Deprecation warning for setup.py HOT 1
- [Bug] read version from import lib HOT 1
- Type Hints/Annotations HOT 1
- struct.error: unpack requires a buffer of 4 bytes HOT 3
- Group Properties Not Reading HOT 14
- Error encountered when writing DAQmx data with scale information HOT 1
- [Feature] Add number of samples to read per chunk HOT 3
- API Reference HOT 2
- [Feature] Option to return Dataframe as PyArrow dtype HOT 1
- How to ignore `warning` in read function? HOT 3
- Missing 8 rquired positional arguments when trying to create ChannelObject HOT 1
- Inconsistent Behaviour With Truncated Files HOT 5
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from nptdms.