Cast offsets to float

This commit is contained in:
Jan Petykiewicz 2019-04-18 01:12:51 -07:00
parent 8987cf8c44
commit 9ecd34b2f7
2 changed files with 2 additions and 2 deletions

View File

@ -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

View File

@ -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