astropy 5.0

ParametersBackRef
minversion(module, version, inclusive=True, version_path='__version__')
deprecated

version_path is not used anymore and is deprecated in astropy 5.0.

Parameters

module : module or `str`

An imported module of which to check the version, or the name of that module (in which case an import of that module is attempted-- if this fails :None:None:`False` is returned).

version : `str`

The version as a string that this module must have at a minimum (e.g. '0.12' ).

inclusive : `bool`

The specified version meets the requirement inclusively (i.e. >= ) as opposed to strictly greater than (default: :None:None:`True`).

Returns :None:None:`True` if the specified Python module satisfies a minimum version requirement, and :None:None:`False` if not.

Examples

This example is valid syntax, but we were not able to check execution
>>> import astropy
... minversion(astropy, '0.4.4') True
See :

Back References

The following pages refer to to this document either explicitly or contain code examples using this.

astropy.utils.introspection.minversion

Local connectivity graph

Hover to see nodes names; edges to Self not shown, Caped at 50 nodes.

Using a canvas is more power efficient and can get hundred of nodes ; but does not allow hyperlinks; , arrows or text (beyond on hover)

SVG is more flexible but power hungry; and does not scale well to 50 + nodes.

All aboves nodes referred to, (or are referred from) current nodes; Edges from Self to other have been omitted (or all nodes would be connected to the central node "self" which is not useful). Nodes are colored by the library they belong to, and scaled with the number of references pointing them


File: /astropy/utils/introspection.py#108
type: <class 'function'>
Commit: