Skip to content

Commit

Permalink
update error info
Browse files Browse the repository at this point in the history
  • Loading branch information
chaoming0625 committed Jan 12, 2024
1 parent c3c9cbf commit e40e9d4
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion brainpy/_src/math/op_register/taichi_aot_based.py
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,9 @@ def _array_to_field(dtype, shape) -> Any:
elif dtype == np.float64:
dtype = ti.float64
else:
raise TypeError
raise NotImplementedError(f'Currently we do not support dtype {dtype} in Taichi. '
f'If you think it is necessary, please open an issue at '
f'https://github.com/brainpy/BrainPy/issues/new')
return ti.field(dtype=dtype, shape=shape)


Expand Down

0 comments on commit e40e9d4

Please sign in to comment.