DM raises error if nans encountered
Merge branch 'gpu' of github.com:andrewpaulreeves/pyAOS into gpu