def get_numpy_status():
 numpy_status = {}
 try:
  import numpy
  numpy_version = numpy.__version__
  numpy_status['up_to_date'] = (parse_version(numpy_version) >= parse_version(NUMPY_MIN_VERSION))
  numpy_status['version'] = numpy_version
 except ImportError:
  traceback.print_exc()
  numpy_status['up_to_date'] = False
  numpy_status['version'] = ''
 return numpy_status

def get_numpy_status ( ) : numpy_status = { } try : import numpy numpy_version = numpy . __version__ numpy_status [ 'up_to_date' ] = ( parse_version ( numpy_version ) >= parse_version ( NUMPY_MIN_VERSION ) ) numpy_status [ 'version' ] = numpy_version except ImportError : traceback . print_exc ( ) numpy_status [ 'up_to_date' ] = False numpy_status [ 'version' ] = '' return numpy_status
returns a dictionary containing a boolean specifying whether numpy is up-to-date .