prjemian / punx

Python Utilities for NeXus HDF5 files
https://prjemian.github.io/punx
5 stars 7 forks source link

validate has undefined "title" error #7

Closed prjemian closed 8 years ago

prjemian commented 8 years ago
ich@AirBook:~ punx validate ~/Data/SUM2_180dps_0p18T_master.h5
Traceback (most recent call last):
  File "/sw/bin/punx", line 9, in <module>
    load_entry_point('punx==0+unknown', 'console_scripts', 'punx')()
  File "/sw/lib/python2.7/site-packages/punx/main.py", line 201, in main
    args.func(args)
  File "/sw/lib/python2.7/site-packages/punx/main.py", line 119, in func_validate
    validator.validate()
  File "/sw/lib/python2.7/site-packages/punx/validate.py", line 559, in validate
    self.validate_default_plot()
  File "/sw/lib/python2.7/site-packages/punx/validate.py", line 431, in validate_default_plot
    elif version1(nxdata_group):
  File "/sw/lib/python2.7/site-packages/punx/validate.py", line 291, in version1
    self.new_finding(title, field.name + '@axis', finding.TODO, 'not checked')
UnboundLocalError: local variable 'title' referenced before assignment