prjemian / punx

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

dimension scales can define bin boundaries or bin centers #47

Closed prjemian closed 8 years ago

prjemian commented 8 years ago

see https://github.com/nexpy/nexpy/issues/95#issuecomment-236217526

Basically, this test defines a valid length for a NeXus dimension scale

length_ok = len(scale) - len(signal_data_axis) in (0, 1)

Make sure this is the validation test that is applied

prjemian commented 8 years ago

this

length_ok = dscale[i].shape[0] - signal_data.shape[i] in (0, 1)

where i is the i'th dimension of the plottable data