redhawk
redhawk copied to clipboard
ossie/utils/bluefile/bluefile_helpers.py: hdr_to_sri does not handle other 1000 -type files
REDHAWK 2.2.6
The code checks specifically for 1000 type
files when 1001 and 1004 are valid for one-dimensional formats. Alternatively, the header field class
can be used to generalize this to a fix:
if hdr['class'] == 1:
subsize = 0
ystart = 0
ydelta = 0
yunits = BULKIO.UNITS_NONE
else:
subsize = hdr['subsize']
ystart = hdr['ystart']
ydelta = hdr['ydelta']
yunits = hdr['yunits']
Edit: formatting