prjemian / punx

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

change ERROR to WARN #27

Closed prjemian closed 8 years ago

prjemian commented 8 years ago

under the notion of being more tolerant for structures which are valid for HDF5 but not NeXus compliant, consider changing the ERROR assignment below to a WARN:

/image_1/axis/id@NX_class                                            validItemName                NOTE    relaxed re: [A-Za-z_][\w_]*                        
/image_1/axis/id/data                                                validItemName-strict         OK      strict re: [a-z_][a-z0-9_]*                        
/image_1/axis/id/data@items                                          validItemName-strict         OK      strict re: [a-z_][a-z0-9_]*                        
/image_1/axis/offset[1]                                              validItemName                ERROR   relaxed re: [A-Za-z_][\w_]*                        
/image_1/axis/offset[1]@NX_class                                     validItemName                NOTE    relaxed re: [A-Za-z_][\w_]*                        

That is, for names which do not pass the strict or the relaxed validItemName regular expression, change the assignment from ERROR to WARN