version

Returns information describing the version of the library, serial number, operating system, and compiler.

Synopsis

version (code)

Required Arguments

int code (Input)
Index indicating which value is to be returned. It must be LIBRARY_VERSION, OS_VERSION, COMPILER_VERSION, or LICENSE_NUMBER.

Return Value

The requested value is returned. If code is out of range, then None is returned.

Description

The function version returns information describing the version of this library, the version of the operating system under which it was compiled, the compiler used, and the PyIMSL number.

Example

This example prints all the values returned by version on a particular machine. The output is omitted because the results are system dependent.

from __future__ import print_function
from pyimsl.math.version import version, LIBRARY_VERSION, OS_VERSION, COMPILER_VERSION, LICENSE_NUMBER

library_version = version(LIBRARY_VERSION)
os_version = version(OS_VERSION)
compiler_version = version(COMPILER_VERSION)
license_number = version(LICENSE_NUMBER)

print("Library version: ", library_version)
print("OS version: ", os_version)
print("Compiler version: ", compiler_version)
print("Serial number: ", license_number)