-
Notifications
You must be signed in to change notification settings - Fork 130
Fix hybrid newton python tests imports #6522
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
Conversation
|
jenkins build this please |
|
You can test using python/docker and python/docker/test_wheels. various issues; 3.10-3.13: it is safe to assumes 3.8 and 3.9 would also miss the kerasify module of course. |
|
i'll make some noise here, just ignore.. |
|
jenkins build wheels please |
|
Thanks for pointing that out, I will try to use python/docker and python/docker/test_wheels Regarding kerasify, as it comes from opm-common. How would you recommend to manage it? |
|
well, for starters, you cannot import what you do not package, the ml directory is not included in the opm-common wheels. |
|
jenkins build this wheels opm-common=4780 please |
8 similar comments
|
jenkins build this wheels opm-common=4780 please |
|
jenkins build this wheels opm-common=4780 please |
|
jenkins build this wheels opm-common=4780 please |
|
jenkins build this wheels opm-common=4780 please |
|
jenkins build this wheels opm-common=4780 please |
|
jenkins build this wheels opm-common=4780 please |
|
jenkins build this wheels opm-common=4780 please |
|
jenkins build this wheels opm-common=4780 please |
|
jenkins build this wheels opm-common=4780 please |
this is not a unit test for the python binaries
Move HybridNewton to an integration test
|
jenkins build this please |
don't use pytest and fix include paths
|
jenkins build this wheels please |
|
jenkins build this please |
6 similar comments
|
jenkins build this please |
|
jenkins build this please |
|
jenkins build this please |
|
jenkins build this please |
|
jenkins build this please |
|
jenkins build this please |
|
jenkins build this please |
|
jenkins build this wheels please |
akva2
left a comment
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.
Finally. Everything is fine now except disabling the test if tensorflow is not available. I'll do that in a quickly-to-follow up PR
|
Thanks for reviewing and spending time and effort in this PR ! |
This PR is linked to OPM/opm-simulators#6424 on Hybrid Newton flag.
The related python tests are failing due to some import errors. I am not sure that I reproduced exactly the setup that is run during tests.
The tests have a tensorflow dependency for creating dummy neural networks. I added tensorflow-cpu in the requirements as it is lighter than its gpu version.
Regarding other imports, I mimicked the other tests way of importing.
I'm providing few details for clarity:
I followed installation using Option 1, and then run unittest from top of test folder using:
python -m unittest discover -s test -p "test_*.py" -v and the hybrid newton tests are working.