- changed status to resolved
dataObject return AttributeError: 'itom.dataObject' object has no attribute 'values'
Issue #170
resolved
dataObject returns: AttributeError: 'itom.dataObject' object has no attribute 'values'
Following steps leads to this error:
- Save an object as a *.idc
dobj = dataObject.rand([200,200])
dobj = {"dobj" : dobj}
saveIDC("dobj.idc", dobj)
- Import this object in the “Global Variables” without unpacking it
- The dict “dobj” has an item “dobj”
- Execute than the following snippets to reproduze the AttributeError:
dobj = dobj["dobj"]
dobj
AttributeError: 'itom.dataObject' object has no attribute 'values'
Comments (1)
-
- Log in to comment
Fixes issue
#170: prevent Python error if an expanded dictionary in the workspace is replaced by a dataObject (among others)→ <<cset 73c3d4e94973>>