Menu

Commit [r28063]  Maximize  Restore  History

Updated all of relax to protect against future changes occurring in the numpy Python package.

From numpy version 1.9, the FutureWarning "__main__:1: FutureWarning: comparison to `None` will
result in an elementwise object comparison in the future." is seen in a large percentage of all
relax's user functions. This is caught and turned into a RelaxWarning with the same message.

The issue is that the behaviour of the comparison operators '==' and '!=' will change with future
numpy versions. These have been replaced with 'is' and 'is not' throughout the relax code base.
Changes have also been made to the minfx and bmrblib packages to match.

bugman 2015-10-16

1 2 > >> (Page 1 of 2)
changed /trunk/data_store/align_tensor.py
changed /trunk/data_store/diff_tensor.py
changed /trunk/lib/alignment/pcs.py
changed /trunk/lib/alignment/rdc.py
changed /trunk/lib/arg_check.py
changed /trunk/lib/structure/represent/cone.py
changed /trunk/lib/structure/superimpose.py
changed /trunk/lib/xml.py
changed /trunk/pipe_control/eliminate.py
changed /trunk/pipe_control/interatomic.py
changed /trunk/pipe_control/mol_res_spin.py
changed /trunk/pipe_control/paramag.py
changed /trunk/pipe_control/rdc.py
changed /trunk/pipe_control/structure/main.py
changed /trunk/specific_analyses/frame_order/api.py
changed /trunk/specific_analyses/frame_order/data.py
changed /trunk/specific_analyses/frame_order/optimisation.py
changed /trunk/specific_analyses/frame_order/uf.py
changed /trunk/specific_analyses/model_free/api.py
changed /trunk/specific_analyses/model_free/optimisation.py
changed /trunk/specific_analyses/n_state_model/api.py
changed /trunk/specific_analyses/n_state_model/optimisation.py
changed /trunk/specific_analyses/n_state_model/parameters.py
changed /trunk/specific_analyses/relax_disp/optimisation.py
changed /trunk/specific_analyses/relax_fit/api.py
/trunk/data_store/align_tensor.py Diff Switch to side-by-side view
Loading...
/trunk/data_store/diff_tensor.py Diff Switch to side-by-side view
Loading...
/trunk/lib/alignment/pcs.py Diff Switch to side-by-side view
Loading...
/trunk/lib/alignment/rdc.py Diff Switch to side-by-side view
Loading...
/trunk/lib/arg_check.py Diff Switch to side-by-side view
Loading...
/trunk/lib/structure/represent/cone.py Diff Switch to side-by-side view
Loading...
/trunk/lib/structure/superimpose.py Diff Switch to side-by-side view
Loading...
/trunk/lib/xml.py Diff Switch to side-by-side view
Loading...
/trunk/pipe_control/eliminate.py Diff Switch to side-by-side view
Loading...
/trunk/pipe_control/interatomic.py Diff Switch to side-by-side view
Loading...
/trunk/pipe_control/mol_res_spin.py Diff Switch to side-by-side view
Loading...
/trunk/pipe_control/paramag.py Diff Switch to side-by-side view
Loading...
/trunk/pipe_control/rdc.py Diff Switch to side-by-side view
Loading...
/trunk/pipe_control/structure/main.py Diff Switch to side-by-side view
Loading...
/trunk/specific_analyses/frame_order/api.py Diff Switch to side-by-side view
Loading...
/trunk/specific_analyses/frame_order/data.py Diff Switch to side-by-side view
Loading...
/trunk/specific_analyses/frame_order/optimisation.py Diff Switch to side-by-side view
Loading...
/trunk/specific_analyses/frame_order/uf.py Diff Switch to side-by-side view
Loading...
/trunk/specific_analyses/model_free/api.py Diff Switch to side-by-side view
Loading...
/trunk/specific_analyses/model_free/optimisation.py Diff Switch to side-by-side view
Loading...
/trunk/specific_analyses/n_state_model/api.py Diff Switch to side-by-side view
Loading...
/trunk/specific_analyses/n_state_model/optimisation.py Diff Switch to side-by-side view
Loading...
/trunk/specific_analyses/n_state_model/parameters.py Diff Switch to side-by-side view
Loading...
/trunk/specific_analyses/relax_disp/optimisation.py Diff Switch to side-by-side view
Loading...
/trunk/specific_analyses/relax_fit/api.py Diff Switch to side-by-side view
Loading...
1 2 > >> (Page 1 of 2)
Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.