Re: [Numpy-discussion] masked_values behaviour

2017-12-15 Thread Paul Hobson
I think this is a floating point precision issue. https://docs.python.org/3.6/tutorial/floatingpoint.html On Fri, Dec 15, 2017 at 1:40 PM, Jesper Larsen wrote: > Hi numpy people, > > I was just wondering whether this behaviour is intended: > > >>> import numpy as np > >>> np.ma.masked_values(np

[Numpy-discussion] masked_values behaviour

2017-12-15 Thread Jesper Larsen
Hi numpy people, I was just wondering whether this behaviour is intended: >>> import numpy as np >>> np.ma.masked_values(np.array([-32768.0]), np.int16(-32768)) masked_array(data = [-32768.], mask = False, fill_value = -32768.0) So the resulting masked array is not masked. On

[Numpy-discussion] NumFOCUS End-of-Year Fundraising Drive (NumPy fiscal sponsor)

2017-12-15 Thread Gina Helfrich
Hi folks, NumFOCUS, the nonprofit that provides fiscal sponsorship for NumPy, kicks off our end of year fundraising drive officially on Monday and would really appreciate your support! Andy Terrel, NumFOCUS Board President, has generously put up the first $5,000 donation as a matching challenge t

Re: [Numpy-discussion] building numpy with python3.7

2017-12-15 Thread Thomas Caswell
I have been building numpy master with CPython master but am also using cython master. My not-pretty script for doing this is: #! /usr/bin/bash set -e TARGET_ENV=bleeding OSPATH=~/source/other_source/ pushd $OSPATH/cpython/ git pull git clean -xfd ./configure make -j 9 ./python -m venv --copies

Re: [Numpy-discussion] building numpy with python3.7

2017-12-15 Thread Nathaniel Smith
On Fri, Dec 15, 2017 at 2:42 AM, Hannes Breytenbach wrote: > > I don't think this is a cython version issue - cloned the latest version from > git yesterday... > > python3.7 -c "import cython; print(cython.__version__)" > 0.28a0 It is a cython version issue: https://github.com/cython/cython/issu

Re: [Numpy-discussion] building numpy with python3.7

2017-12-15 Thread Hannes Breytenbach
I don't think this is a cython version issue - cloned the latest version from git yesterday... python3.7 -c "import cython; print(cython.__version__)" 0.28a0 - Original Message - From: "Nathaniel Smith" To: "Discussion of Numerical Python" Sent: Friday, December 15, 2017 12:30:48 P

Re: [Numpy-discussion] building numpy with python3.7

2017-12-15 Thread Nathaniel Smith
Try upgrading cython? On Fri, Dec 15, 2017 at 2:11 AM, Hannes Breytenbach wrote: > Hi devs! > > This is my first post to the discussion list! > > Has anyone tried to build numpy with python3.7.0a3? > > I get the following gcc errors during compile: > > . > . > . > > compiling C so

[Numpy-discussion] building numpy with python3.7

2017-12-15 Thread Hannes Breytenbach
Hi devs! This is my first post to the discussion list! Has anyone tried to build numpy with python3.7.0a3? I get the following gcc errors during compile: . . . compiling C sources C compiler: gcc -pthread -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall