- changed status to resolved
SystemError when converting an empty np.ndarray to an itom.dataObject
Issue #114
resolved
The following code fails with a SystemError:
import numpy as np
from itom import dataObject
nparray = np.array([], dtype='uint16')
dobj = dataObject(nparray) #-> error
The expected behaviour is, that an empty dataObject with the same type than the nparray is created.
Comments (1)
-
reporter - Log in to comment
fixes issue
#114: SystemError when converting an empty np.ndarray to an itom.dataObject (python unittest added to reproduce this error)→ <<cset 1cd4ec66c2b3>>