prjemian / punx

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

missing NXentry group not reported in validation #28

Closed prjemian closed 8 years ago

prjemian commented 8 years ago

When validating a non-NeXus HDF5 data file, the report does not mention that there is no NXentry group. (This file was a component of a linked file set with master and two linked files.)

mintadmin@mintadmin-VirtualBox ~ $ punx va /home/mintadmin/Documents/eclipse/NeXus/definitions/manual/source/examples/h5py/external_angles.hdf5
Validation findings
:file: external_angles.hdf5
:validation results shown:  COMMENT, ERROR, NOTE, OK, TODO, UNUSED, WARN
============= ============================ ======= ================================
address       validation                   status  comment(s)                      
============= ============================ ======= ================================
/             validate all names           COMMENT ----------                      
/angles       validItemName-strict         OK      strict re: [a-z_][a-z0-9_]*     
/angles@units validItemName-strict         OK      strict re: [a-z_][a-z0-9_]*     
/             validate all objects         COMMENT ----------                      
/angles       field data type              OK      data type: float64              
/angles@units field units attribute        OK      exists                          
/angles@units field units attribute        OK      value: degrees                  
/             review file root with NXroot COMMENT ----------                      
/             NXDL known                   OK      NXroot                          
/angles       NXroot defined field         NOTE    acceptable                      
/angles       NXroot field                 TODO    need to complete check with NXDL
/             check for default plot       COMMENT ----------                      
/@default     @default attribute           NOTE    does not exist                  
============= ============================ ======= ================================

summary statistics
======= ===== ===========================================================
status  count description                                                
======= ===== ===========================================================
OK      6     meets NeXus specification                                  
NOTE    2     does not meet NeXus specification, but acceptable          
WARN    0     does not meet NeXus specification, not generally acceptable
ERROR   0     violates NeXus specification                               
TODO    1     validation not implemented yet                             
UNUSED  0     optional NeXus item not used in data file                  
COMMENT 4     comment from the punx source code                          
--      --    --                                                         
TOTAL   13    --                                                         
======= ===== ===========================================================

mintadmin@mintadmin-VirtualBox ~ $