You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The way the method is written, the extended header (ext_header) must be of list format. In the iteration over a dictionary, the value is unused and item is not in scope (this is a copy-paste error where the code for processing a list was almost used directly for the dict. The block of code can be fixed by replacing item[1] with value:
if isinstance(ext_hdr, dict):
for key, value in ext_hdr.iteritems():
try:
data=value
if isinstance(value, numpy.generic):
data=value.item()
dt = CF.DataType(key, ossie.properties.numpy_to_tc_value(data, type(value).__name__))
#print "DEBUG (dict) AFTER dt.value:", dt.value, dt.value.value(), type(dt.value.value())
kwds.append(dt)
except:
continue
The text was updated successfully, but these errors were encountered:
REDHAWK 2.2.6
The way the method is written, the extended header (
ext_header
) must be of list format. In the iteration over a dictionary, thevalue
is unused anditem
is not in scope (this is a copy-paste error where the code for processing a list was almost used directly for the dict. The block of code can be fixed by replacingitem[1]
withvalue
:The text was updated successfully, but these errors were encountered: