We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
This doesn't matter for python 2 uses, but in python 3, you can get things like:
hdr['descrip'].item().split(';') --------------------------------------------------------------------------- TypeError Traceback (most recent call last) <ipython-input-42-a30eaa7f7322> in <module>() ----> 1 hdr['descrip'].item().split(';') TypeError: 'str' does not support the buffer interface
It's possible to cast this object to a str, but that's a bit sketchy:
str(aa.item()) "b'te=5.63;ti=0;fa=20;ec=0.0000;acq=[128,128];mt=0;rp=1.0;ves=0.859437;ve=50'"
The text was updated successfully, but these errors were encountered:
One solution that works for me right now is to call:
hdr['descrip'].decode('utf-8')
on the resulting description field, but maybe this should be pushed into the creation of this field?
Sorry, something went wrong.
No branches or pull requests
This doesn't matter for python 2 uses, but in python 3, you can get things like:
It's possible to cast this object to a str, but that's a bit sketchy:
The text was updated successfully, but these errors were encountered: