Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ossie/utils/bluefile/bluefile_helpers.py: hdr_to_sri does not handle other 1000 -type files #36

Open
btgoodwin opened this issue May 8, 2020 · 0 comments

Comments

@btgoodwin
Copy link

btgoodwin commented May 8, 2020

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant