Cast offsets to float
This commit is contained in:
parent
8987cf8c44
commit
9ecd34b2f7
@ -98,7 +98,7 @@ class GridRepetition:
|
|||||||
|
|
||||||
if val.size != 2:
|
if val.size != 2:
|
||||||
raise PatternError('Offset must be convertible to size-2 ndarray')
|
raise PatternError('Offset must be convertible to size-2 ndarray')
|
||||||
self._offset = val.flatten()
|
self._offset = val.flatten().astype(float)
|
||||||
|
|
||||||
# dose property
|
# dose property
|
||||||
@property
|
@property
|
||||||
|
@ -57,7 +57,7 @@ class SubPattern:
|
|||||||
|
|
||||||
if val.size != 2:
|
if val.size != 2:
|
||||||
raise PatternError('Offset must be convertible to size-2 ndarray')
|
raise PatternError('Offset must be convertible to size-2 ndarray')
|
||||||
self._offset = val.flatten()
|
self._offset = val.flatten().astype(float)
|
||||||
|
|
||||||
# dose property
|
# dose property
|
||||||
@property
|
@property
|
||||||
|
Loading…
Reference in New Issue
Block a user