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