-
Notifications
You must be signed in to change notification settings - Fork 5
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
Is it feasible to remove scipy and numpy as dependencies? #130
Comments
If we don't use With As an example: python's built-in exponentiation says that Since numpy is also one of the importable libraries in custom python-based problems, it might also be worth checking with MIT's folks to see if they import numpy for any of theirs. |
FWIW, I don't think it's surprising. Numpy is optimized for speed and memory over correctness. The reason it gets 10^20 wrong is because it uses a 64 bit int to store the data, and that overflows. Doing
I had a similar concern with score percentage calculation in edx-platform. Under Python 2.7, Python's built-in
I realize that any change in scoring behavior is a potential headache, even if it is technically more correct.
I hadn't thought of removing numpy from the platform outright, because of the content backwards compatibility issues you point out. But I'm only just now realizing that we pass |
Opened a very small pull request to remove scipy. |
These dependencies are heavyweight, complicating installation and increasing memory usage. But it doesn't look like we actually use scipy anywhere, and my brief reading of this repo's numpy usage is that we could replace it with calls to Python's stdlib math and cmath modules (which were not available back when this repo was created using Python 2.x).
The text was updated successfully, but these errors were encountered: