[SciPy-dev] Merged numarray branch

Pearu Peterson pearu at scipy.org
Tue Jan 11 07:39:17 CST 2005



On Tue, 11 Jan 2005, Norbert Nemec wrote:

> How about adding one more way to configure numerix: apart from checking the
> command line and the environment, one could also check a global variable
> 'numerix':
>
> if 'numerix' in globals().keys():
>  which = globals()['numerix'], 'global variable'
>
> That way, one could simply do a
>
> globals()['numerix'] = 'numarray'
> from scipy import *
>
> at the beginning of a script without worrying about the environment.

-1

Use

os.environ['NUMERIX']='numarray'
from scipy import *

instead.

Pearu




More information about the Scipy-dev mailing list