- edited description
myDataObject.astype('...') should raise a RuntimeError if dataObject is empty
Issue #102
resolved
dobj = dataObject()
dobj.astype('float32') #should raise a defined RuntimeError, currently it is throwing an uncaught exception in Python
maybe verify other members of itom.dataObject, too
Comments (5)
-
reporter -
reporter - changed version to 4.0
-
reporter - changed milestone to Version 4.1
This issue cannot be reproduced.
This script
t = ['uint8','int8','uint16','int16','int32','float32','float64','complex64','complex128','rgba32'] for t1 in t: d = dataObject() a = d.astype(t1) print(t1, a.dtype)
returns
uint8 uint8
int8 int8
uint16 uint16
int16 int16
int32 int32
float32 float32
float64 float64
complex64 complex64
complex128 complex128
rgba32 rgba32as desired.
I propose to close this issue.
-
reporter - changed milestone to 4.1
-
- changed status to resolved
Issue cannot be reproduced alo in v.4.2.0
- Log in to comment