Commit 564b761a authored by Unknown's avatar Unknown
Browse files

OneView Translator bugfix

Fixed storage of parameters to correctly add them to the existing dictionary.
parent 3fe32307
......@@ -184,10 +184,10 @@ class OneViewTranslator(Translator):
Set the Measurement Group attributes
'''
usize, vsize = image.shape
image_parms.attrs['image_size_u'] = usize
image_parms.attrs['image_size_v'] = vsize
image_parms.attrs['translator'] = 'OneView'
image_parms.attrs['num_pixels'] = image.size
image_parms['image_size_u'] = usize
image_parms['image_size_v'] = vsize
image_parms['translator'] = 'OneView'
image_parms['num_pixels'] = image.size
write_simple_attrs(meas_grp, image_parms)
'''
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment