Skip to content
New issue

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

h5structure: UnicodeDecodeError #37

Closed
prjemian opened this issue Jun 21, 2016 · 1 comment
Closed

h5structure: UnicodeDecodeError #37

prjemian opened this issue Jun 21, 2016 · 1 comment
Assignees
Labels

Comments

@prjemian
Copy link
Owner

mintadmin@mintadmin-VirtualBox ~/test_data $ punx st file_1.nxs 
Traceback (most recent call last):
  File "/home/mintadmin/Apps/anaconda/bin/punx", line 11, in <module>
    sys.exit(main())
  File "/home/mintadmin/Apps/anaconda/lib/python2.7/site-packages/punx/main.py", line 326, in main
    args.func(args)
  File "/home/mintadmin/Apps/anaconda/lib/python2.7/site-packages/punx/main.py", line 129, in func_structure
    report = mc.report(show_attributes)
  File "/home/mintadmin/Apps/anaconda/lib/python2.7/site-packages/punx/h5structure.py", line 67, in report
    structure = self._renderGroup(f, txt, indentation = "")
  File "/home/mintadmin/Apps/anaconda/lib/python2.7/site-packages/punx/h5structure.py", line 118, in _renderGroup
    s += self._renderGroup(value, itemname, indentation+"  ")
  File "/home/mintadmin/Apps/anaconda/lib/python2.7/site-packages/punx/h5structure.py", line 118, in _renderGroup
    s += self._renderGroup(value, itemname, indentation+"  ")
  File "/home/mintadmin/Apps/anaconda/lib/python2.7/site-packages/punx/h5structure.py", line 118, in _renderGroup
    s += self._renderGroup(value, itemname, indentation+"  ")
  File "/home/mintadmin/Apps/anaconda/lib/python2.7/site-packages/punx/h5structure.py", line 106, in _renderGroup
    s += self._renderDataset(value, itemname, indentation+"  ")
  File "/home/mintadmin/Apps/anaconda/lib/python2.7/site-packages/punx/h5structure.py", line 163, in _renderDataset
    s += self._renderAttributes(dset, indentation)
  File "/home/mintadmin/Apps/anaconda/lib/python2.7/site-packages/punx/h5structure.py", line 127, in _renderAttributes
    s.append("%s  @%s = %s" % (indentation, name, str(value)))
UnicodeDecodeError: 'ascii' codec can't decode byte 0xc5 in position 0: ordinal not in range(128)
@prjemian prjemian added the bug label Jun 21, 2016
@prjemian prjemian added this to the initial public release milestone Jun 21, 2016
@prjemian prjemian self-assigned this Jun 21, 2016
@prjemian
Copy link
Owner Author

That file is in the NeXus exampledata repository: exampledata/Soleil/file_1.nxs

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant