prjemian / punx

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

validate: does not report when attribute starts with "@" #65

Closed prjemian closed 7 years ago

prjemian commented 7 years ago

valid HDF5 attributes, yet invalid with NeXus, can start with a "@"

The leading "@" characters are currently stripped by this code in punx.validate.Data_File_Validator.validate_item_name():

        short_name = h5_addr.split('/')[-1].split('@')[-1]

fix this situation