-
Notifications
You must be signed in to change notification settings - Fork 56
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Improve np.array implementation #1256
Conversation
@jalalium Thanks for your pull request. Please have a quick look at the review process in the developer docs to see how we organise PRs in pyccel and add the appropriate labels. Thanks! |
While trying to add tests for both
epyccel outputs the following
While the code generated in |
I think there are 2 bugs here. I am opening issues |
Blocked by #1258 |
/bot run pr_tests |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good job ! Your PR is using all the code it added/changed.
Hey @pyccel/pyccel-dev ! @jalalium has just created this great new pull request! Check it out and let me know what you think! |
/bot run pr_tests |
/bot run pr_tests |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good, but I have a couple of questions.
Co-authored-by: Yaman Güçlü <yaman.guclu@gmail.com>
/bot run linux |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good job ! Your PR is using all the code it added/changed.
np.array
can be called with one variable argument (previously this caused an infinite loop over the elements of the array)._print_NumpyArray
to reduce duplication and fix Wrong use of transpose in np.array() in fortran #1241 and fix duplicate Copy of a fortran array uses unnecessary transpose #1257.np.array
implementation to correct the default order and add thendmin
parameter.test_arrays.py
so failures reference the relevant issue, tuples use==
instead ofnp.array_equal
, and a more comprehensive check is carried out on returned arrays including checking the datatype and ordering.