Reason and solution: When operating with NumPy numbers (e.g., +, >), if we put NumPy numbers on LHS, it will trigger NumPy's operators instead of HeteroCL's. Thus, it generates errors. The existing error message does not show the correct information. This PR fixes the output error messages.
Solved Issue: #342
Reason and solution: When operating with NumPy numbers (e.g.,
+
,>
), if we put NumPy numbers on LHS, it will trigger NumPy's operators instead of HeteroCL's. Thus, it generates errors. The existing error message does not show the correct information. This PR fixes the output error messages.Test case: tests/issues/test_issue_342.py