keep float datatype
based on the assumption, that no mixed float/int data is stored
This commit is contained in:
parent
6e06764e2d
commit
615a4ab40f
|
@ -162,9 +162,9 @@ class Geom():
|
|||
|
||||
microstructure = microstructure.reshape(grid,order='F')
|
||||
|
||||
if np.any(np.mod(microstructure.flatten(),1)!=0.0):
|
||||
if '.' in raw[0]: # contains float values
|
||||
pass
|
||||
else:
|
||||
else: # assume int values
|
||||
microstructure = microstructure.astype('int')
|
||||
|
||||
return cls(microstructure.reshape(grid),size,homogenization,comments)
|
||||
|
|
Loading…
Reference in New Issue