Dear all,
It seems that there is not a percentile function for masked array in numpy
or scipy?
I checked numpy.percentile and scipy.percentile, it seems not support only
nonmasked array? And there is no percentile function in scipy.stats.mstats,
so I have to use np.percentile(arr.compressed()) I guess.
Thanks for any comments.
Best,
Chao
--
please visit:
http://www.globalcarbonatlas.org/
***********************************************************************************
Chao YUE
…
[View More]Laboratoire des Sciences du Climat et de l'Environnement (LSCE-IPSL)
UMR 1572 CEA-CNRS-UVSQ
Batiment 712 - Pe 119
91191 GIF Sur YVETTE Cedex
Tel: (33) 01 69 08 29 02; Fax:01.69.08.77.16
************************************************************************************
[View Less]
Hi,
I'm sorry to ask this, I guess I should know - but is there any way in
disutils or numpy distutils to check whether a compiler flag is valid
before doing extension building?
I'm thinking of something like this, to check whether the compiler can
handle '-fopenmp':
have_openmp = check_compiler_flag('-fopenmp')
flags = ['-fopenmp'] if have_openmp else []
ext = Extension('myext', ['myext.c'],
extra_compile_args = flags,
extra_link_args = …
[View More]flags])
I guess this would have to go somewhere in the main setup() call in
order to pick up custom compilers on the command line and such?
Cheers,
Matthew
[View Less]
Hi,
This is actually for both of numpy and scipy.
I would like to rename the current OSX wheels on pypi so that they
will be installed by default on system python, homebrew, macports, as
well as Python.org Python.
At the moment, they will only be found and installed by default by
Python.org Python.
For reasons explained here:
https://github.com/MacPython/wiki/wiki/Spinning-wheels
and confirmed with testing here:
https://travis-ci.org/matthew-brett/scipy-stack-osx-testing/builds/25131865…
[View More]
- OSX wheels built for Python.org python do in fact work correctly for
the homebrew, macports and system python.
In fact, future versions of pip will very likely offer the Python.org
OSX wheels for installation on these other systems by default:
https://github.com/pypa/pip/pull/1465
Renaming the wheels just adds the 'platform tag' for these other
versions of Python to the wheel name, so pip sees they are compatible.
For example, I propose to rename the current numpy wheel from:
numpy-1.8.1-cp27-none-macosx_10_6_intel.whl
to:
numpy-1.8.1-cp27-none-macosx_10_6_intel.macosx_10_9_intel.macosx_10_9_x86_64.whl
I think this is only an improvement to the current situation, in that
users of pip on these other OSX systems will get a fast binary install
rather than a slow compiled install.
Any comments?
Cheers,
Matthew
[View Less]