Menu

Commit [r28064]  Maximize  Restore  History

More future protection against numpy changes.

The FutureWarning is "`rank` is deprecated; use the `ndim` attribute or function instead. To find
the rank of a matrix see `numpy.linalg.matrix_rank`." Therefore the N-state model target function
method paramag_info() has been updated to use the .ndim attribute and longer use numpy.rank()
function.

bugman 2015-10-16

changed /trunk/target_functions/n_state_model.py
/trunk/target_functions/n_state_model.py Diff Switch to side-by-side view
Loading...
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.