Participer au site avec un Tip
Rechercher
 

Améliorations / Corrections

Vous avez des améliorations (ou des corrections) à proposer pour ce document : je vous remerçie par avance de m'en faire part, cela m'aide à améliorer le site.

Emplacement :

Description des améliorations :

Vous êtes un professionnel et vous avez besoin d'une formation ? Programmation Python
Les fondamentaux
Voir le programme détaillé
Module « numpy.testing »

Fonction assert_no_warnings - module numpy.testing

Signature de la fonction assert_no_warnings

def assert_no_warnings(*args, **kwargs) 

Description

help(numpy.testing.assert_no_warnings)

Fail if the given callable produces any warnings.

If called with all arguments omitted, may be used as a context manager::

    with assert_no_warnings():
        do_something()

The ability to be used as a context manager is new in NumPy v1.11.0.

Parameters
----------
func : callable
    The callable to test.
\*args : Arguments
    Arguments passed to `func`.
\*\*kwargs : Kwargs
    Keyword arguments passed to `func`.

Returns
-------
The value returned by `func`.



Vous êtes un professionnel et vous avez besoin d'une formation ? Calcul scientifique
avec Python
Voir le programme détaillé