You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When I run the hello world example as described here the simulation finishes without error, but produces a number of warnings during the runtime. I followed the installation for the source code installation here to install pyopmspe11.
This doesnt seem to affect the result, I just wanted to document the warning.
Displayed warning (excerpt from the screen output):
python3 /home/rene/work/reviews/2024-joss-pyopmspe11/pyopmspe11/src/pyopmspe11/visualization/data.py -p spe11b -d spe11b -g all -r 50,1,15 -t 5 -w 1.0 -u resdata
The Python package opm was not found, using resdata
/home/rene/work/reviews/2024-joss-pyopmspe11/pyopmspe11/vpyopmspe11/lib/python3.12/site-packages/resdata/summary/rd_sum.py:873: DeprecationWarning: The method the [] operator will change behaviour in the future. It will then return a plain numpy vector. You are advised to change to use the numpy_vector() method right away
warnings.warn(
/home/rene/work/reviews/2024-joss-pyopmspe11/pyopmspe11/vpyopmspe11/lib/python3.12/site-packages/resdata/summary/rd_sum.py:407: DeprecationWarning: The method get_vector() has been deprecated, use numpy_vector() instead
warnings.warn(
/home/rene/work/reviews/2024-joss-pyopmspe11/pyopmspe11/vpyopmspe11/lib/python3.12/site-packages/resdata/summary/rd_sum.py:873: DeprecationWarning: The method the [] operator will change behaviour in the future. It will then return a plain numpy vector. You are advised to change to use the numpy_vector() method right away
warnings.warn(
/home/rene/work/reviews/2024-joss-pyopmspe11/pyopmspe11/vpyopmspe11/lib/python3.12/site-packages/resdata/summary/rd_sum.py:407: DeprecationWarning: The method get_vector() has been deprecated, use numpy_vector() instead
warnings.warn(
/home/rene/work/reviews/2024-joss-pyopmspe11/pyopmspe11/vpyopmspe11/lib/python3.12/site-packages/resdata/summary/rd_sum.py:873: DeprecationWarning: The method the [] operator will change behaviour in the future. It will then return a plain numpy vector. You are advised to change to use the numpy_vector() method right away
warnings.warn(
/home/rene/work/reviews/2024-joss-pyopmspe11/pyopmspe11/vpyopmspe11/lib/python3.12/site-packages/resdata/summary/rd_sum.py:407: DeprecationWarning: The method get_vector() has been deprecated, use numpy_vector() instead
warnings.warn(
... ( a lot of repetitions of the same warning)
Thanks @gassmoeller for pointing this. This issue has been addressed in #93.
If the flag -s is set to 1 (0 by default), Python warnings are written. In the current verison, these warnings come from the resdata dependency.
Ok, as long as you know the warnings are harmless. Ideally you would of course solve the cause of the warnings (are you using a deprecated function or setting of resdata?). I would recommend to leave the warnings enabled for your CI and some sort of developer build, otherwise you may miss new warnings in the future. However, for now this is an acceptable solution.
When I run the hello world example as described here the simulation finishes without error, but produces a number of warnings during the runtime. I followed the installation for the source code installation here to install pyopmspe11.
This doesnt seem to affect the result, I just wanted to document the warning.
Displayed warning (excerpt from the screen output):
My environment:
The text was updated successfully, but these errors were encountered: