From bhmerchant at gmail.com Sun Feb 1 16:35:12 2015 From: bhmerchant at gmail.com (Brian Merchant) Date: Sun, 1 Feb 2015 13:35:12 -0800 Subject: [SciPy-User] Need clarification on paper "The NumPy array: a structure for efficient numerical computation": what does "vectorize" really mean? In-Reply-To: References: Message-ID: Thanks! This clears things up. On Sat, Jan 31, 2015 at 9:44 AM, Robert Kern wrote: > On Sat, Jan 31, 2015 at 4:49 PM, Brian Merchant > wrote: > > > > In "The NumPy array: a structure for efficient numerical computation" > (2011, http://arxiv.org/abs/1102.1523), the authors use the > verb/adjective "vectorize" in such a way that I need clarification. > > > > On page 3, in subsection "Numerical operations on arrays: > vectorization", I get the (perhaps incorrect?) impression that > "vectorization" refers to "an operation that can be run using C for loops > over C arrays". Already, the vocabulary seems a little weird to me, since > if "vectorization" really just means "for loops in a low level language > rather than a high level language"...why create a word for the concept > based on the root word "vector"? Perhaps there is some history there that I > am missing, but I can accept that definition. The answer to the following > StackOverflow seems to suggest that "vectorization" means "implemented in a > lower level language": > http://stackoverflow.com/questions/17483042/explain-the-speed-difference-between-numpys-vectorized-function-application-vs > > Rather, it means that the loop over the array is implicit in the syntax of > the language rather than explicit; that is, the language deals with arrays > ("vectors") as first-class objects with their own mathematical operations > rather than just containers of numbers that one must operate on > independently. For example, Fortran 90 has vectorized operations, but it is > not calling down to a lower level language to do it. It's just part of the > language. E.g. > > http://www.cs.uwm.edu/~cs151/Bacon/Lecture/HTML/ch11s12.html > > The use of the term "vector" for this does have long history in computing > to refer to things like this: > > http://en.wikipedia.org/wiki/Vector_processor#Early_work > > > However, on page 5, I see the following sentence: "In a non-vectorized > language, no temporary arrays need to be allocated when the output values > are calculated in a nested for-loop, e.g. (in C)". Hold on -- how does > "vectorized" make sense here? Should I interpret it as "in a low level > language, no temporary arrays need to be allocated when the output values > are calculated..."? If yes, well...why would temporary arrays need to be > allocated in a higher level language? > > This isn't true of all languages with vector operations (c.f. Fortran 90), > just some high-level languages. As for Python, the temporaries come in > because the operations are evaluated independently of the operations in the > expression, and the loops happen inside of each operation. In numpy, > > A = B * C + D > > (B*C) must be calculated first into a temporary before D can be added to > it. Each one of those are a separate loop. Compare this to the typical > implementation in C which would allocate the space for A and do a single > loop: > > for (i=0; i A[i] = B[i] * C[i] + D[i]; > } > > Since Python does not generate machine code, it does not analyze > expressions to see if it can optimize the expression like this. It just > calls the function corresponding to the * operator and then the function > corresponding to the + operator. > > -- > Robert Kern > > _______________________________________________ > SciPy-User mailing list > SciPy-User at scipy.org > http://mail.scipy.org/mailman/listinfo/scipy-user > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From dskgair at gmail.com Mon Feb 2 03:19:43 2015 From: dskgair at gmail.com (David Kershaw) Date: Mon, 2 Feb 2015 08:19:43 +0000 (UTC) Subject: [SciPy-User] scipy.sparse.linalg.factorized Message-ID: I have the Python(x,y)-2.7.9.0.exe installation of python(x,y) running on windows-7 OS. I want to use scipy.sparse.linalg.factorized to solve linear systems using Umfpack. As far as I can tell, the python(x,y) installation does not include the necessary Umfpack code. How do I install Umfpack and how can I tell that I'm getting Umfpack and not superLU when I call factorized? The Microsoft Visual C++ Compiler Package for Python 2.7 was installed when I ran Python(x,y)-2.7.9.0.exe. From dskgair at gmail.com Mon Feb 2 03:46:36 2015 From: dskgair at gmail.com (David Kershaw) Date: Mon, 2 Feb 2015 08:46:36 +0000 (UTC) Subject: [SciPy-User] scipy.sparse.linalg.factorized References: Message-ID: David Kershaw gmail.com> writes: > > I have the Python(x,y)-2.7.9.0.exe installation of python(x,y) running on > windows-7 OS. I want to use scipy.sparse.linalg.factorized to solve linear > systems using Umfpack. As far as I can tell, the python(x,y) installation > does not include the necessary Umfpack code. How do I install Umfpack and > how can I tell that I'm getting Umfpack and not superLU when I call > factorized? The Microsoft Visual C++ Compiler Package for Python 2.7 was > installed when I ran Python(x,y)-2.7.9.0.exe. > The python(x,y) installation does include the cvxopt site-package and one of the files in the cvxopt folder is umfpack.pyd dated 9/28/2014. From cmutel at gmail.com Mon Feb 2 05:59:16 2015 From: cmutel at gmail.com (Christopher Mutel) Date: Mon, 2 Feb 2015 11:59:16 +0100 Subject: [SciPy-User] scipy.sparse.linalg.factorized In-Reply-To: References: Message-ID: Hi David- UMFPACK needs to be wrapped to work with scipy, and the wrapper was removed because of incompatible licenses (SuiteSparse, of which UMFPACK is a part, is GPL-licensed). The wrapper code was also available as a scikit, which is now maintained by Robert Cimrman on github: https://github.com/rc/scikit-umfpack I have built scikit-umfpack as a wheel for OS X, but don't have enough expertise to build it as a wheel for Windows. To install it on your machine you will need to compile SuiteSparse, and then install scikit-umfpack with a suitable config that shows where your UMFPACK and other SuiteSparse libraries are. It is possible that scikit-umfpack could use the library in cvxopt; I don't know anything about this, but I guess it is not trivial. If someone wanted to build scikit-umfpack as a wheel (which would include the UMFPACK libraries, so no one else would have to figure out how to compile them), that would be super awesome. You can test if UMFPACK is being used by scipy with: from scipy.sparse.linalg.dsolve.linsolve import useUmfpack useUmfpack will be either True or False. Yours, -Chris On 2 February 2015 at 09:19, David Kershaw wrote: > I have the Python(x,y)-2.7.9.0.exe installation of python(x,y) running on > windows-7 OS. I want to use scipy.sparse.linalg.factorized to solve linear > systems using Umfpack. As far as I can tell, the python(x,y) installation > does not include the necessary Umfpack code. How do I install Umfpack and > how can I tell that I'm getting Umfpack and not superLU when I call > factorized? The Microsoft Visual C++ Compiler Package for Python 2.7 was > installed when I ran Python(x,y)-2.7.9.0.exe. > > _______________________________________________ > SciPy-User mailing list > SciPy-User at scipy.org > http://mail.scipy.org/mailman/listinfo/scipy-user -- ############################ Chris Mutel Technology Assessment Group, LEA Paul Scherrer Institut OHSA D22 5232 Villigen PSI Switzerland http://chris.mutel.org Telefon: +41 56 310 5787 ############################ From dskgair at gmail.com Mon Feb 2 15:36:56 2015 From: dskgair at gmail.com (David Kershaw) Date: Mon, 2 Feb 2015 20:36:56 +0000 (UTC) Subject: [SciPy-User] scipy.sparse.linalg.factorized References: Message-ID: Christopher Mutel gmail.com> writes: > > Hi David- > > UMFPACK needs to be wrapped to work with scipy, and the wrapper was > removed because of incompatible licenses (SuiteSparse, of which > UMFPACK is a part, is GPL-licensed). The wrapper code was also > available as a scikit, which is now maintained by Robert Cimrman on > github: https://github.com/rc/scikit-umfpack > > I have built scikit-umfpack as a wheel for OS X, but don't have enough > expertise to build it as a wheel for Windows. To install it on your > machine you will need to compile SuiteSparse, and then install > scikit-umfpack with a suitable config that shows where your UMFPACK > and other SuiteSparse libraries are. > > It is possible that scikit-umfpack could use the library in cvxopt; I > don't know anything about this, but I guess it is not trivial. > > If someone wanted to build scikit-umfpack as a wheel (which would > include the UMFPACK libraries, so no one else would have to figure out > how to compile them), that would be super awesome. > > You can test if UMFPACK is being used by scipy with: > > from scipy.sparse.linalg.dsolve.linsolve import useUmfpack > > useUmfpack will be either True or False. > > Yours, > -Chris Thanks for your help Chris. I just found at: https://pypi.python.org/pypi/scikit-umfpack a file for download: File Type Py Version Uploaded on Size scikit_umfpack-0.1-cp27-none-macosx_10_6_intel.whl (md5) Python Wheel cp27 2015-01-21 875KB Is this "scikit-umfpack as a wheel" for python 2.7.9 and how do I add it to my existing python(x,y) installation? I don't have a clue how to install a python wheel. Best regards, David > > On 2 February 2015 at 09:19, David Kershaw gmail.com> wrote: > > I have the Python(x,y)-2.7.9.0.exe installation of python(x,y) running on > > windows-7 OS. I want to use scipy.sparse.linalg.factorized to solve linear > > systems using Umfpack. As far as I can tell, the python(x,y) installation > > does not include the necessary Umfpack code. How do I install Umfpack and > > how can I tell that I'm getting Umfpack and not superLU when I call > > factorized? The Microsoft Visual C++ Compiler Package for Python 2.7 was > > installed when I ran Python(x,y)-2.7.9.0.exe. > > > > _______________________________________________ > > SciPy-User mailing list > > SciPy-User scipy.org > > http://mail.scipy.org/mailman/listinfo/scipy-user > From cmutel at gmail.com Mon Feb 2 16:03:40 2015 From: cmutel at gmail.com (Christopher Mutel) Date: Mon, 2 Feb 2015 22:03:40 +0100 Subject: [SciPy-User] scipy.sparse.linalg.factorized In-Reply-To: References: Message-ID: On 2 February 2015 at 21:36, David Kershaw wrote: > Christopher Mutel gmail.com> writes: > >> >> Hi David- >> >> UMFPACK needs to be wrapped to work with scipy, and the wrapper was >> removed because of incompatible licenses (SuiteSparse, of which >> UMFPACK is a part, is GPL-licensed). The wrapper code was also >> available as a scikit, which is now maintained by Robert Cimrman on >> github: https://github.com/rc/scikit-umfpack >> >> I have built scikit-umfpack as a wheel for OS X, but don't have enough >> expertise to build it as a wheel for Windows. To install it on your >> machine you will need to compile SuiteSparse, and then install >> scikit-umfpack with a suitable config that shows where your UMFPACK >> and other SuiteSparse libraries are. >> >> It is possible that scikit-umfpack could use the library in cvxopt; I >> don't know anything about this, but I guess it is not trivial. >> >> If someone wanted to build scikit-umfpack as a wheel (which would >> include the UMFPACK libraries, so no one else would have to figure out >> how to compile them), that would be super awesome. >> >> You can test if UMFPACK is being used by scipy with: >> >> from scipy.sparse.linalg.dsolve.linsolve import useUmfpack >> >> useUmfpack will be either True or False. >> >> Yours, >> -Chris > > Thanks for your help Chris. > > I just found at: > https://pypi.python.org/pypi/scikit-umfpack > > a file for download: > File Type Py Version Uploaded on Size > scikit_umfpack-0.1-cp27-none-macosx_10_6_intel.whl (md5) Python Wheel > cp27 2015-01-21 875KB > > Is this "scikit-umfpack as a wheel" for python 2.7.9 and how do I add it to > my existing python(x,y) installation? I don't have a clue how to install a > python wheel. > > Best regards, > David Python wheels (http://pythonwheels.com/) are a newish format for distributing Python code, and can be installed with pip, I can run `pip install scikit-umfpack` and have a running installation in under a second. But they are OS and architecture specific when including compiled libraries like SuiteSparse, so the Mac OS X wheel won't work on your python(x,y) installation. So far you are stuck compiling SuiteSparse yourself, I think. Yours, Chris From p.zaffino at yahoo.it Tue Feb 3 06:55:12 2015 From: p.zaffino at yahoo.it (Paolo Zaffino) Date: Tue, 03 Feb 2015 12:55:12 +0100 Subject: [SciPy-User] News about EuroSciPy 2015? Message-ID: <54D0B720.6020501@yahoo.it> Dear all, I would like to know if there is any news about EuroSciPy 2015. Thank you very much. Best regards. Paolo Zaffino From daan.wynen at inria.fr Tue Feb 3 09:20:53 2015 From: daan.wynen at inria.fr (Daan Wynen) Date: Tue, 03 Feb 2015 15:20:53 +0100 Subject: [SciPy-User] fmin_l_bfgs_b stdout gets mixed into following Python stdout In-Reply-To: References: <54CA4AAE.6080309@inria.fr> Message-ID: <54D0D945.1000606@inria.fr> sadly, the -u flag doesn't help after all. I guess for the moment at least I have to live with this... :/ On 01/29/2015 04:32 PM, Matthew Gidden wrote: > If this works for you, not that you can also set the PYTHONUNBUFFERED > > environment variable (in case you're running this via a testing > framework, for instance). > > On Thu, Jan 29, 2015 at 9:25 AM, Jaidev Deshpande > > wrote: > > > > On Thu, Jan 29, 2015 at 8:28 PM, Daan Wynen > wrote: > > Hi, > > I couldn't find anything about this issue, and it is not > critical but annoying. > Whenever I run the solver, the standard output order gets > mixed up. > What I want to see is the following (blank lines stripped out > for saving space): > > ... > ME SAYS: Unoptimized objective: 0.947251976788 > > RUNNING THE L-BFGS-B CODE > * * * > Machine precision = 2.220D-16 > N = 50 M = 20 > At X0 0 variables are exactly at the bounds > At iterate 0 f= 9.47252D-01 |proj g|= 1.04635D-01 > At iterate 1 f= 7.95655D-01 |proj g|= 9.16550D-02 > ... > At iterate 3769 f= 7.12543D-05 |proj g|= 2.07939D-05 > At iterate 3770 f= 7.12527D-05 |proj g|= 1.51021D-04 > * * * > Tit = total number of iterations > ... > Total User time 0.000E+00 seconds. > > ME SAYS: After optimization: 7.1252665476e-05 > ... > > > Instead, what I get is this: > > > ... > ME SAYS: Unoptimized objective: 0.947251976788 > > RUNNING THE L-BFGS-B CODE > * * * > Machine precision = 2.220D-16 > N = 50 M = 20 > At X0 0 variables are exactly at the bounds > At iterate 0 f= 9.47252D-01 |proj g|= 1.04635D-01 > At iterate 1 f= 7.95655D-01 |proj g|= 9.16550D-02 > ... > At iterate 3147 f= 8.09457D-05 |proj g|= 5.97659D-05 > > ME SAYS: After optimization: 7.1252665476e-05 > At iterate 3148 f= 8.09298D-05 |proj g|= 5.19516D-05 > ... > At iterate 3769 f= 7.12543D-05 |proj g|= 2.07939D-05 > At iterate 3770 f= 7.12527D-05 |proj g|= 1.51021D-04 > * * * > Tit = total number of iterations > ... > Total User time 0.000E+00 seconds. > ... > > Obviously, when I run an experiment, I would like to see the > result at the end, and not buried somewhere in the middle of > the iteration outputs. > I tried passing callback=lambda _: sys.stdout.flush() and > putting another flush after the whole optimization, but it > didn't help. > The example is on a very fast toy calculation, but this also > happens when each iteration takes multiple seconds. > > I am using: > python 2.7.3 (virtualenv from Fedora 18 distribution) > scipy 0.14.1 > numpy 1.9.1 > But this also happens on Canopy. > > Is this maybe just to be expected when interfacing with > fortran, or am I using this the wrong way? > > Best Regards > Daan Wynen > > _______________________________________________ > SciPy-User mailing list > SciPy-User at scipy.org > http://mail.scipy.org/mailman/listinfo/scipy-user > > > Perhaps this can be fixed by running your Python script in the > unbuffered output mode, as > > $ python -u foo.py > > -- > JD > > _______________________________________________ > SciPy-User mailing list > SciPy-User at scipy.org > http://mail.scipy.org/mailman/listinfo/scipy-user > > > > > -- > Matthew Gidden > Ph.D. Candidate, Nuclear Engineering > The University of Wisconsin -- Madison > Ph. 225.892.3192 > > > _______________________________________________ > SciPy-User mailing list > SciPy-User at scipy.org > http://mail.scipy.org/mailman/listinfo/scipy-user -------------- next part -------------- An HTML attachment was scrubbed... URL: From almar.klein at gmail.com Wed Feb 4 09:43:19 2015 From: almar.klein at gmail.com (Almar Klein) Date: Wed, 04 Feb 2015 15:43:19 +0100 Subject: [SciPy-User] ANN: imageio v1.1 Message-ID: <54D23007.6060204@gmail.com> Imageio is a Python library that provides an easy interface to read and write a wide range of image data, including animated images. video, volumetric data, and scientific formats. It is cross-platform, runs on Python 2.x and 3.x, and is easy to install. More information: http://imageio.github.io/ Release notes: http://imageio.readthedocs.org/en/latest/releasenotes.html Regards, Almar From flying-sheep at web.de Thu Feb 5 03:34:41 2015 From: flying-sheep at web.de (Philipp A.) Date: Thu, 05 Feb 2015 08:34:41 +0000 Subject: [SciPy-User] ANN: imageio v1.1 References: <54D23007.6060204@gmail.com> Message-ID: this really fills a niche well. good job! Almar Klein schrieb am Wed Feb 04 2015 at 15:43:47: > Imageio is a Python library that provides an easy interface to read and > write a wide range of image data, including animated images. video, > volumetric data, and scientific formats. It is cross-platform, runs on > Python 2.x and 3.x, and is easy to install. > > More information: http://imageio.github.io/ > Release notes: http://imageio.readthedocs.org/en/latest/releasenotes.html > > Regards, > Almar > _______________________________________________ > SciPy-User mailing list > SciPy-User at scipy.org > http://mail.scipy.org/mailman/listinfo/scipy-user > -------------- next part -------------- An HTML attachment was scrubbed... URL: From projetmbc at gmail.com Thu Feb 5 03:57:54 2015 From: projetmbc at gmail.com (Christophe Bal) Date: Thu, 5 Feb 2015 09:57:54 +0100 Subject: [SciPy-User] ANN: imageio v1.1 In-Reply-To: References: <54D23007.6060204@gmail.com> Message-ID: Hello. This looks nice. Is there some perfomance issue ? *Christophe BAL* *Enseignant de math?matiques en Lyc?e **et d?veloppeur Python amateur* *---* *French math teacher in a "Lyc?e" **and **Python **amateur developer* 2015-02-05 9:34 GMT+01:00 Philipp A. : > this really fills a niche well. good job! > > Almar Klein schrieb am Wed Feb 04 2015 at > 15:43:47: > > Imageio is a Python library that provides an easy interface to read and >> write a wide range of image data, including animated images. video, >> volumetric data, and scientific formats. It is cross-platform, runs on >> Python 2.x and 3.x, and is easy to install. >> >> More information: http://imageio.github.io/ >> Release notes: http://imageio.readthedocs.org/en/latest/releasenotes.html >> >> Regards, >> Almar >> _______________________________________________ >> SciPy-User mailing list >> SciPy-User at scipy.org >> http://mail.scipy.org/mailman/listinfo/scipy-user >> > > _______________________________________________ > SciPy-User mailing list > SciPy-User at scipy.org > http://mail.scipy.org/mailman/listinfo/scipy-user > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From almar.klein at gmail.com Thu Feb 5 04:29:55 2015 From: almar.klein at gmail.com (Almar Klein) Date: Thu, 05 Feb 2015 10:29:55 +0100 Subject: [SciPy-User] ANN: imageio v1.1 In-Reply-To: References: <54D23007.6060204@gmail.com> Message-ID: <54D33813.4010507@gmail.com> > This looks nice. Is there some perfomance issue ? How do you mean? - Almar > > > *Christophe BAL* > *Enseignant de math?matiques en Lyc?e **et d?veloppeur Python amateur* > *---* > *French math teacher in a "Lyc?e" **and **Python **amateur developer* > > 2015-02-05 9:34 GMT+01:00 Philipp A. >: > > this really fills a niche well. good job! > > Almar Klein > > schrieb am Wed Feb 04 2015 at 15:43:47: > > Imageio is a Python library that provides an easy interface to > read and > write a wide range of image data, including animated images. video, > volumetric data, and scientific formats. It is cross-platform, > runs on > Python 2.x and 3.x, and is easy to install. > > More information: http://imageio.github.io/ > Release notes: > http://imageio.readthedocs.__org/en/latest/releasenotes.__html > > > Regards, > Almar > _________________________________________________ > SciPy-User mailing list > SciPy-User at scipy.org > http://mail.scipy.org/mailman/__listinfo/scipy-user > > > > _______________________________________________ > SciPy-User mailing list > SciPy-User at scipy.org > http://mail.scipy.org/mailman/listinfo/scipy-user > > > > > _______________________________________________ > SciPy-User mailing list > SciPy-User at scipy.org > http://mail.scipy.org/mailman/listinfo/scipy-user > From projetmbc at gmail.com Thu Feb 5 04:32:09 2015 From: projetmbc at gmail.com (Christophe Bal) Date: Thu, 5 Feb 2015 10:32:09 +0100 Subject: [SciPy-User] ANN: imageio v1.1 In-Reply-To: <54D33813.4010507@gmail.com> References: <54D23007.6060204@gmail.com> <54D33813.4010507@gmail.com> Message-ID: Working with pictures can be slow with Python so I would like to know if imageio is a fast, or a slow package, or a medium one ? *Christophe BAL* *Enseignant de math?matiques en Lyc?e **et d?veloppeur Python amateur* *---* *French math teacher in a "Lyc?e" **and **Python **amateur developer* 2015-02-05 10:29 GMT+01:00 Almar Klein : > > > This looks nice. Is there some perfomance issue ? > > How do you mean? > > - Almar > > > > > > > > *Christophe BAL* > > *Enseignant de math?matiques en Lyc?e **et d?veloppeur Python amateur* > > *---* > > *French math teacher in a "Lyc?e" **and **Python **amateur developer* > > > > 2015-02-05 9:34 GMT+01:00 Philipp A. > >: > > > > this really fills a niche well. good job! > > > > Almar Klein > > > schrieb am Wed Feb 04 2015 at 15:43:47: > > > > Imageio is a Python library that provides an easy interface to > > read and > > write a wide range of image data, including animated images. > video, > > volumetric data, and scientific formats. It is cross-platform, > > runs on > > Python 2.x and 3.x, and is easy to install. > > > > More information: http://imageio.github.io/ > > Release notes: > > http://imageio.readthedocs.__org/en/latest/releasenotes.__html > > > > > > Regards, > > Almar > > _________________________________________________ > > SciPy-User mailing list > > SciPy-User at scipy.org > > http://mail.scipy.org/mailman/__listinfo/scipy-user > > > > > > > > _______________________________________________ > > SciPy-User mailing list > > SciPy-User at scipy.org > > http://mail.scipy.org/mailman/listinfo/scipy-user > > > > > > > > > > _______________________________________________ > > SciPy-User mailing list > > SciPy-User at scipy.org > > http://mail.scipy.org/mailman/listinfo/scipy-user > > > _______________________________________________ > SciPy-User mailing list > SciPy-User at scipy.org > http://mail.scipy.org/mailman/listinfo/scipy-user > -------------- next part -------------- An HTML attachment was scrubbed... URL: From almar.klein at gmail.com Thu Feb 5 04:37:50 2015 From: almar.klein at gmail.com (Almar Klein) Date: Thu, 05 Feb 2015 10:37:50 +0100 Subject: [SciPy-User] ANN: imageio v1.1 In-Reply-To: References: <54D23007.6060204@gmail.com> <54D33813.4010507@gmail.com> Message-ID: <54D339EE.2070102@gmail.com> > Working with pictures can be slow with Python so I would like to know if > imageio is a fast, or a slow package, or a medium one ? Imageio only reads and writes images. It does that pretty fast. E.g. png/jpg and other common formats are handled via the FreeImage library. Video via ffmpeg. When reading an image it yields a numpy array. For processing the data, you need to use other tools, e.g. scikit-image. - Almar > > *Christophe BAL* > *Enseignant de math?matiques en Lyc?e **et d?veloppeur Python amateur* > *---* > *French math teacher in a "Lyc?e" **and **Python **amateur developer* > > 2015-02-05 10:29 GMT+01:00 Almar Klein >: > > > > This looks nice. Is there some perfomance issue ? > > How do you mean? > > - Almar > > > > > > > > *Christophe BAL* > > *Enseignant de math?matiques en Lyc?e **et d?veloppeur Python > amateur* > > *---* > > *French math teacher in a "Lyc?e" **and **Python **amateur developer* > > > > 2015-02-05 9:34 GMT+01:00 Philipp A. > > >>: > > > > this really fills a niche well. good job! > > > > Almar Klein >> > > schrieb am Wed Feb 04 2015 at 15:43:47: > > > > Imageio is a Python library that provides an easy interface to > > read and > > write a wide range of image data, including animated images. video, > > volumetric data, and scientific formats. It is cross-platform, > > runs on > > Python 2.x and 3.x, and is easy to install. > > > > More information:http://imageio.github.io/ > > Release notes: > > http://imageio.readthedocs.__org/en/latest/releasenotes.__html > > > > > > Regards, > > Almar > > _________________________________________________ > > SciPy-User mailing list > > SciPy-User at scipy.org > > > > http://mail.scipy.org/mailman/__listinfo/scipy-user > > > > > > > > _______________________________________________ > > SciPy-User mailing list > > SciPy-User at scipy.org > > > > http://mail.scipy.org/mailman/listinfo/scipy-user > > > > > > > > > > _______________________________________________ > > SciPy-User mailing list > > SciPy-User at scipy.org > > http://mail.scipy.org/mailman/listinfo/scipy-user > > > _______________________________________________ > SciPy-User mailing list > SciPy-User at scipy.org > http://mail.scipy.org/mailman/listinfo/scipy-user > > > > > _______________________________________________ > SciPy-User mailing list > SciPy-User at scipy.org > http://mail.scipy.org/mailman/listinfo/scipy-user > From projetmbc at gmail.com Thu Feb 5 04:40:16 2015 From: projetmbc at gmail.com (Christophe Bal) Date: Thu, 5 Feb 2015 10:40:16 +0100 Subject: [SciPy-User] ANN: imageio v1.1 In-Reply-To: <54D339EE.2070102@gmail.com> References: <54D23007.6060204@gmail.com> <54D33813.4010507@gmail.com> <54D339EE.2070102@gmail.com> Message-ID: That's a very good point so I will play with your library which has a so easy to use interface (I really like the way to walk through the frames of video). Thanks a lot for your answers ! *Christophe BAL* *Enseignant de math?matiques en Lyc?e **et d?veloppeur Python amateur* *---* *French math teacher in a "Lyc?e" **and **Python **amateur developer* 2015-02-05 10:37 GMT+01:00 Almar Klein : > > Working with pictures can be slow with Python so I would like to know if > > imageio is a fast, or a slow package, or a medium one ? > > Imageio only reads and writes images. It does that pretty fast. E.g. > png/jpg and other common formats are handled via the FreeImage library. > Video via ffmpeg. > > When reading an image it yields a numpy array. For processing the data, > you need to use other tools, e.g. scikit-image. > > - Almar > > > > > > > *Christophe BAL* > > *Enseignant de math?matiques en Lyc?e **et d?veloppeur Python amateur* > > *---* > > *French math teacher in a "Lyc?e" **and **Python **amateur developer* > > > > 2015-02-05 10:29 GMT+01:00 Almar Klein > >: > > > > > > > This looks nice. Is there some perfomance issue ? > > > > How do you mean? > > > > - Almar > > > > > > > > > > > > > *Christophe BAL* > > > *Enseignant de math?matiques en Lyc?e **et d?veloppeur Python > > amateur* > > > *---* > > > *French math teacher in a "Lyc?e" **and **Python **amateur > developer* > > > > > > 2015-02-05 9:34 GMT+01:00 Philipp A. flying-sheep at web.de> > > > >>: > > > > > > this really fills a niche well. good job! > > > > > > Almar Klein > > >> > > > schrieb am Wed Feb 04 2015 at 15:43:47: > > > > > > Imageio is a Python library that provides an easy > interface to > > > read and > > > write a wide range of image data, including animated > images. video, > > > volumetric data, and scientific formats. It is > cross-platform, > > > runs on > > > Python 2.x and 3.x, and is easy to install. > > > > > > More information:http://imageio.github.io/ > > > Release notes: > > > http://imageio.readthedocs.__org/en/latest/releasenotes.__html > > > < > http://imageio.readthedocs.org/en/latest/releasenotes.html> > > > > > > Regards, > > > Almar > > > _________________________________________________ > > > SciPy-User mailing list > > > SciPy-User at scipy.org > > > > > > http://mail.scipy.org/mailman/__listinfo/scipy-user > > > > > > > > > > > > _______________________________________________ > > > SciPy-User mailing list > > > SciPy-User at scipy.org > > > > > > http://mail.scipy.org/mailman/listinfo/scipy-user > > > > > > > > > > > > > > > _______________________________________________ > > > SciPy-User mailing list > > > SciPy-User at scipy.org > > > http://mail.scipy.org/mailman/listinfo/scipy-user > > > > > _______________________________________________ > > SciPy-User mailing list > > SciPy-User at scipy.org > > http://mail.scipy.org/mailman/listinfo/scipy-user > > > > > > > > > > _______________________________________________ > > SciPy-User mailing list > > SciPy-User at scipy.org > > http://mail.scipy.org/mailman/listinfo/scipy-user > > > _______________________________________________ > SciPy-User mailing list > SciPy-User at scipy.org > http://mail.scipy.org/mailman/listinfo/scipy-user > -------------- next part -------------- An HTML attachment was scrubbed... URL: From hturesson at gmail.com Thu Feb 5 11:54:02 2015 From: hturesson at gmail.com (Hjalmar Turesson) Date: Thu, 5 Feb 2015 13:54:02 -0300 Subject: [SciPy-User] ANN: imageio v1.1 In-Reply-To: References: <54D23007.6060204@gmail.com> <54D33813.4010507@gmail.com> <54D339EE.2070102@gmail.com> Message-ID: Hi, It looks and works beautifully. But... is there a way of setting the frame rate for webcams? I see that one can set fps for a writer, but I cannot find a way to set fps for a reader. And when using a webcam it makes sense to be able to control the fps. Thanks a lot! Hjalmar On Thu, Feb 5, 2015 at 6:40 AM, Christophe Bal wrote: > That's a very good point so I will play with your library which has a so > easy to use interface (I really like the way to walk through the frames of > video). > > Thanks a lot for your answers ! > > > *Christophe BAL* > *Enseignant de math?matiques en Lyc?e **et d?veloppeur Python amateur* > *---* > *French math teacher in a "Lyc?e" **and **Python **amateur developer* > > 2015-02-05 10:37 GMT+01:00 Almar Klein : > >> > Working with pictures can be slow with Python so I would like to know if >> > imageio is a fast, or a slow package, or a medium one ? >> >> Imageio only reads and writes images. It does that pretty fast. E.g. >> png/jpg and other common formats are handled via the FreeImage library. >> Video via ffmpeg. >> >> When reading an image it yields a numpy array. For processing the data, >> you need to use other tools, e.g. scikit-image. >> >> - Almar >> >> >> >> > >> > *Christophe BAL* >> > *Enseignant de math?matiques en Lyc?e **et d?veloppeur Python amateur* >> > *---* >> > *French math teacher in a "Lyc?e" **and **Python **amateur developer* >> > >> > 2015-02-05 10:29 GMT+01:00 Almar Klein > > >: >> > >> > >> > > This looks nice. Is there some perfomance issue ? >> > >> > How do you mean? >> > >> > - Almar >> > >> > >> > > >> > > >> > > *Christophe BAL* >> > > *Enseignant de math?matiques en Lyc?e **et d?veloppeur Python >> > amateur* >> > > *---* >> > > *French math teacher in a "Lyc?e" **and **Python **amateur >> developer* >> > > >> > > 2015-02-05 9:34 GMT+01:00 Philipp A. > >> > > >>: >> > > >> > > this really fills a niche well. good job! >> > > >> > > Almar Klein > > > > >> >> > > schrieb am Wed Feb 04 2015 at 15:43:47: >> > > >> > > Imageio is a Python library that provides an easy >> interface to >> > > read and >> > > write a wide range of image data, including animated >> images. video, >> > > volumetric data, and scientific formats. It is >> cross-platform, >> > > runs on >> > > Python 2.x and 3.x, and is easy to install. >> > > >> > > More information:http://imageio.github.io/ >> > > Release notes: >> > > http://imageio.readthedocs.__org/en/latest/releasenotes.__html >> > > < >> http://imageio.readthedocs.org/en/latest/releasenotes.html> >> > > >> > > Regards, >> > > Almar >> > > _________________________________________________ >> > > SciPy-User mailing list >> > > SciPy-User at scipy.org >> > > >> > > http://mail.scipy.org/mailman/__listinfo/scipy-user >> > > >> > > >> > > >> > > _______________________________________________ >> > > SciPy-User mailing list >> > > SciPy-User at scipy.org >> > > >> > > http://mail.scipy.org/mailman/listinfo/scipy-user >> > > >> > > >> > > >> > > >> > > _______________________________________________ >> > > SciPy-User mailing list >> > > SciPy-User at scipy.org >> > > http://mail.scipy.org/mailman/listinfo/scipy-user >> > > >> > _______________________________________________ >> > SciPy-User mailing list >> > SciPy-User at scipy.org >> > http://mail.scipy.org/mailman/listinfo/scipy-user >> > >> > >> > >> > >> > _______________________________________________ >> > SciPy-User mailing list >> > SciPy-User at scipy.org >> > http://mail.scipy.org/mailman/listinfo/scipy-user >> > >> _______________________________________________ >> SciPy-User mailing list >> SciPy-User at scipy.org >> http://mail.scipy.org/mailman/listinfo/scipy-user >> > > > _______________________________________________ > SciPy-User mailing list > SciPy-User at scipy.org > http://mail.scipy.org/mailman/listinfo/scipy-user > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From jl_.+2 at redwoodscientific.com Thu Feb 5 13:49:07 2015 From: jl_.+2 at redwoodscientific.com (John Lawless) Date: Thu, 5 Feb 2015 10:49:07 -0800 Subject: [SciPy-User] ANN: imageio v1.1 In-Reply-To: <54D23007.6060204@gmail.com> References: <54D23007.6060204@gmail.com> Message-ID: <20150205184907.GA14881@redwoodscientific.com> It looks like a nice library. How does Imageio compare (features, performance, etc.) with OpenCV's corresponding functions (imread, imwrite, VideoCapture)? Regards, John On Wed, Feb 04, 2015 at 03:43:19PM +0100, Almar Klein wrote: > Imageio is a Python library that provides an easy interface to read and > write a wide range of image data, including animated images. video, > volumetric data, and scientific formats. It is cross-platform, runs on > Python 2.x and 3.x, and is easy to install. > > More information: http://imageio.github.io/ > Release notes: http://imageio.readthedocs.org/en/latest/releasenotes.html > > Regards, > Almar > _______________________________________________ > SciPy-User mailing list > SciPy-User at scipy.org > http://mail.scipy.org/mailman/listinfo/scipy-user From almar.klein at gmail.com Thu Feb 5 16:33:24 2015 From: almar.klein at gmail.com (Almar Klein) Date: Thu, 05 Feb 2015 22:33:24 +0100 Subject: [SciPy-User] ANN: imageio v1.1 In-Reply-To: References: <54D23007.6060204@gmail.com> <54D33813.4010507@gmail.com> <54D339EE.2070102@gmail.com> Message-ID: <54D3E1A4.5060101@gmail.com> Hi Hjalmar, Currently, there is no way to set fps for the webcam directly. You can set the size though, which is likely to affect the fps (smaller size -> higher fps. Just add e.g. ``size='768x576'`` to the arguments. Similarly you can set the pixelformat. See http://imageio.readthedocs.org/en/latest/format_ffmpeg.html I am not sure if setting fps directly is possible via ffmepg. You could look into it. I welcome a PR :) - Almar On 05-02-15 17:54, Hjalmar Turesson wrote: > Hi, > > It looks and works beautifully. > But... is there a way of setting the frame rate for webcams? I see that > one can set fps for a writer, but I cannot find a way to set fps for a > reader. And when using a webcam it makes sense to be able to control the > fps. > > Thanks a lot! > Hjalmar > > On Thu, Feb 5, 2015 at 6:40 AM, Christophe Bal > wrote: > > That's a very good point so I will play with your library which has > a so easy to use interface (I really like the way to walk through > the frames of video). > > Thanks a lot for your answers ! > > > *Christophe BAL* > *Enseignant de math?matiques en Lyc?e **et d?veloppeur Python amateur* > *---* > *French math teacher in a "Lyc?e" **and **Python **amateur developer* > > 2015-02-05 10:37 GMT+01:00 Almar Klein >: > > > Working with pictures can be slow with Python so I would like to know if > > imageio is a fast, or a slow package, or a medium one ? > > Imageio only reads and writes images. It does that pretty fast. E.g. > png/jpg and other common formats are handled via the FreeImage > library. > Video via ffmpeg. > > When reading an image it yields a numpy array. For processing > the data, > you need to use other tools, e.g. scikit-image. > > - Almar > > > > > > > *Christophe BAL* > > *Enseignant de math?matiques en Lyc?e **et d?veloppeur Python amateur* > > *---* > > *French math teacher in a "Lyc?e" **and **Python **amateur developer* > > > > 2015-02-05 10:29 GMT+01:00 Almar Klein > > >>: > > > > > > > This looks nice. Is there some perfomance issue ? > > > > How do you mean? > > > > - Almar > > > > > > > > > > > > > *Christophe BAL* > > > *Enseignant de math?matiques en Lyc?e **et d?veloppeur Python > > amateur* > > > *---* > > > *French math teacher in a "Lyc?e" **and **Python **amateur developer* > > > > > > 2015-02-05 9:34 GMT+01:00 Philipp A. > > > > > >>>: > > > > > > this really fills a niche well. good job! > > > > > > Almar Klein > > > > > >>> > > > schrieb am Wed Feb 04 2015 at 15:43:47: > > > > > > Imageio is a Python library that provides an easy interface to > > > read and > > > write a wide range of image data, including animated images. video, > > > volumetric data, and scientific formats. It is cross-platform, > > > runs on > > > Python 2.x and 3.x, and is easy to install. > > > > > > More information:http://imageio.github.io/ > > > Release notes: > > >http://imageio.readthedocs.__org/en/latest/releasenotes.__html > > > > > > > > > Regards, > > > Almar > > > _________________________________________________ > > > SciPy-User mailing list > > >SciPy-User at scipy.org > > > > >> > > >http://mail.scipy.org/mailman/__listinfo/scipy-user > > > > > > > > > > > > _______________________________________________ > > > SciPy-User mailing list > > >SciPy-User at scipy.org > > > > >> > > > http://mail.scipy.org/mailman/listinfo/scipy-user > > > > > > > > > > > > > > > _______________________________________________ > > > SciPy-User mailing list > > > SciPy-User at scipy.org > > > > > http://mail.scipy.org/mailman/listinfo/scipy-user > > > > > _______________________________________________ > > SciPy-User mailing list > > SciPy-User at scipy.org > > > > http://mail.scipy.org/mailman/listinfo/scipy-user > > > > > > > > > > _______________________________________________ > > SciPy-User mailing list > > SciPy-User at scipy.org > > http://mail.scipy.org/mailman/listinfo/scipy-user > > > _______________________________________________ > SciPy-User mailing list > SciPy-User at scipy.org > http://mail.scipy.org/mailman/listinfo/scipy-user > > > > _______________________________________________ > SciPy-User mailing list > SciPy-User at scipy.org > http://mail.scipy.org/mailman/listinfo/scipy-user > > > > > _______________________________________________ > SciPy-User mailing list > SciPy-User at scipy.org > http://mail.scipy.org/mailman/listinfo/scipy-user > From almar.klein at gmail.com Thu Feb 5 16:39:02 2015 From: almar.klein at gmail.com (Almar Klein) Date: Thu, 05 Feb 2015 22:39:02 +0100 Subject: [SciPy-User] ANN: imageio v1.1 In-Reply-To: <20150205184907.GA14881@redwoodscientific.com> References: <54D23007.6060204@gmail.com> <20150205184907.GA14881@redwoodscientific.com> Message-ID: <54D3E2F6.5050501@gmail.com> > How does Imageio compare (features, performance, etc.) with > OpenCV's corresponding functions (imread, imwrite, VideoCapture)? Frankly, I have hardly any experience with OpenCV. What I can say is that imageio is much easier to install. Further, I expect image reading to be comparatively fast, assuming that the freeImage folks did a good job at writing fast code. As for video, imageio calls the ffmpeg executable and the image data is transferred to Python via a pipe. Although this is fast enough for realtime video streaming (even HD), it is hardly the most efficient method. There is also the AVBIN plugin that can read video directly (using the avbin library, via ctypes). I expect this to be very efficient, but it has a few minor issues (e.g. the first few frames are always black). - Almar > > On Wed, Feb 04, 2015 at 03:43:19PM +0100, Almar Klein wrote: >> Imageio is a Python library that provides an easy interface to read and >> write a wide range of image data, including animated images. video, >> volumetric data, and scientific formats. It is cross-platform, runs on >> Python 2.x and 3.x, and is easy to install. >> >> More information: http://imageio.github.io/ >> Release notes: http://imageio.readthedocs.org/en/latest/releasenotes.html >> >> Regards, >> Almar >> _______________________________________________ >> SciPy-User mailing list >> SciPy-User at scipy.org >> http://mail.scipy.org/mailman/listinfo/scipy-user > _______________________________________________ > SciPy-User mailing list > SciPy-User at scipy.org > http://mail.scipy.org/mailman/listinfo/scipy-user > From jni.soma at gmail.com Thu Feb 5 20:29:15 2015 From: jni.soma at gmail.com (Juan Nunez-Iglesias) Date: Fri, 6 Feb 2015 12:29:15 +1100 Subject: [SciPy-User] Call for code nominations for Elegant SciPy! Message-ID: Hi all, Sorry for cross posting but we are trying to get as many great submissions as possible! I'll keep things short with Raniere Silva's summary: *Long version:* http://ilovesymposia.com/2015/02/04/call-for-code-nominations-for-elegant-scipy/ . *Short version:* Harriet Dashnow, St?fan van der Walt, and I will be writing an O'Reilly book about the SciPy library and the surrounding ecosystem. (...) So, if you recently came across scientific Python code that made you go "Wow!" with its elegance, simplicity, cleverness, or power, please point us to it! (...) *How to submit* Reach @hdashnow, @stefanvdwalt or @jnuneziglesias on Twitter or just comment on the blog post, http://ilovesymposia.com/2015/02/04/call-for-code-nominations-for-elegant-scipy/ Thanks! Juan. -------------- next part -------------- An HTML attachment was scrubbed... URL: From jjhelmus at gmail.com Fri Feb 6 11:00:57 2015 From: jjhelmus at gmail.com (Jonathan Helmus) Date: Fri, 06 Feb 2015 10:00:57 -0600 Subject: [SciPy-User] Call for code nominations for Elegant SciPy! In-Reply-To: References: Message-ID: <54D4E539.1030609@gmail.com> Juan, Just wanted to say that how excited it is to hear about a new book on SciPy. I'm looking forward to seeing it in print. If I recall or come across some elegant examples of SciPy usage I'll be sure to forward them along. Cheers, - Jonathan Helmus On 02/05/2015 07:29 PM, Juan Nunez-Iglesias wrote: > Hi all, > > Sorry for cross posting but we are trying to get as many great > submissions as possible! I'll keep things short with Raniere Silva's > summary: > > *Long version:* > http://ilovesymposia.com/2015/02/04/call-for-code-nominations-for-elegant-scipy/. > > *Short version:* > Harriet Dashnow, St?fan van der Walt, and I will be writing an > O?Reilly book about the SciPy library and the surrounding ecosystem. (...) > > So, if you recently came across scientific Python code that made you > go ?Wow!? with its elegance, simplicity, cleverness, or power, please > point us to it! (...) > > *How to submit* > Reach @hdashnow, @stefanvdwalt or @jnuneziglesias on Twitter or just > comment on the blog post, > http://ilovesymposia.com/2015/02/04/call-for-code-nominations-for-elegant-scipy/ > > Thanks! > > Juan. > > > _______________________________________________ > SciPy-User mailing list > SciPy-User at scipy.org > http://mail.scipy.org/mailman/listinfo/scipy-user -------------- next part -------------- An HTML attachment was scrubbed... URL: From hturesson at gmail.com Fri Feb 6 16:42:54 2015 From: hturesson at gmail.com (Hjalmar Turesson) Date: Fri, 6 Feb 2015 18:42:54 -0300 Subject: [SciPy-User] ANN: imageio v1.1 In-Reply-To: <54D3E1A4.5060101@gmail.com> References: <54D23007.6060204@gmail.com> <54D33813.4010507@gmail.com> <54D339EE.2070102@gmail.com> <54D3E1A4.5060101@gmail.com> Message-ID: Hi Almar, At least on linux it is definitively possible to set the fps via ffmpeg. The following command works fine on my computer: hkt at HP-Z200:~/.imageio/ffmpeg$ ./ffmpeg.linux64 -f v4l2 *-framerate 25* -video_size 640x480 -i /dev/video0 output.mkv I found the information at https://trac.ffmpeg.org/wiki/Capture/Webcam. It looks like it should work on windows too. But, I'm less certain about OS X. Best regards, Hjalmar On Thu, Feb 5, 2015 at 6:33 PM, Almar Klein wrote: > Hi Hjalmar, > > Currently, there is no way to set fps for the webcam directly. You can > set the size though, which is likely to affect the fps (smaller size -> > higher fps. Just add e.g. ``size='768x576'`` to the arguments. Similarly > you can set the pixelformat. See > http://imageio.readthedocs.org/en/latest/format_ffmpeg.html > > I am not sure if setting fps directly is possible via ffmepg. You could > look into it. I welcome a PR :) > > - Almar > > > On 05-02-15 17:54, Hjalmar Turesson wrote: > > Hi, > > > > It looks and works beautifully. > > But... is there a way of setting the frame rate for webcams? I see that > > one can set fps for a writer, but I cannot find a way to set fps for a > > reader. And when using a webcam it makes sense to be able to control the > > fps. > > > > Thanks a lot! > > Hjalmar > > > > On Thu, Feb 5, 2015 at 6:40 AM, Christophe Bal > > wrote: > > > > That's a very good point so I will play with your library which has > > a so easy to use interface (I really like the way to walk through > > the frames of video). > > > > Thanks a lot for your answers ! > > > > > > *Christophe BAL* > > *Enseignant de math?matiques en Lyc?e **et d?veloppeur Python > amateur* > > *---* > > *French math teacher in a "Lyc?e" **and **Python **amateur developer* > > > > 2015-02-05 10:37 GMT+01:00 Almar Klein > >: > > > > > Working with pictures can be slow with Python so I would like > to know if > > > imageio is a fast, or a slow package, or a medium one ? > > > > Imageio only reads and writes images. It does that pretty fast. > E.g. > > png/jpg and other common formats are handled via the FreeImage > > library. > > Video via ffmpeg. > > > > When reading an image it yields a numpy array. For processing > > the data, > > you need to use other tools, e.g. scikit-image. > > > > - Almar > > > > > > > > > > > > *Christophe BAL* > > > *Enseignant de math?matiques en Lyc?e **et d?veloppeur Python > amateur* > > > *---* > > > *French math teacher in a "Lyc?e" **and **Python **amateur > developer* > > > > > > 2015-02-05 10:29 GMT+01:00 Almar Klein > > > >>>: > > > > > > > > > > This looks nice. Is there some perfomance issue ? > > > > > > How do you mean? > > > > > > - Almar > > > > > > > > > > > > > > > > > > *Christophe BAL* > > > > *Enseignant de math?matiques en Lyc?e **et d?veloppeur > Python > > > amateur* > > > > *---* > > > > *French math teacher in a "Lyc?e" **and **Python > **amateur developer* > > > > > > > > 2015-02-05 9:34 GMT+01:00 Philipp A. < > flying-sheep at web.de > > > > > > > > > >>>: > > > > > > > > this really fills a niche well. good job! > > > > > > > > Almar Klein almar.klein at gmail.com> > > > > > > > > > almar.klein at gmail.com>>>> > > > > schrieb am Wed Feb 04 2015 at 15:43:47: > > > > > > > > Imageio is a Python library that provides an > easy interface to > > > > read and > > > > write a wide range of image data, including > animated images. video, > > > > volumetric data, and scientific formats. It is > cross-platform, > > > > runs on > > > > Python 2.x and 3.x, and is easy to install. > > > > > > > > More information:http://imageio.github.io/ > > > > Release notes: > > > >http://imageio.readthedocs. > __org/en/latest/releasenotes.__html > > > > < > http://imageio.readthedocs.org/en/latest/releasenotes.html> > > > > > > > > Regards, > > > > Almar > > > > > _________________________________________________ > > > > SciPy-User mailing list > > > >SciPy-User at scipy.org > > > > > > > > >> > > > >http://mail.scipy.org/mailman/__listinfo/scipy-user > > > > < > http://mail.scipy.org/mailman/listinfo/scipy-user> > > > > > > > > > > > > _______________________________________________ > > > > SciPy-User mailing list > > > >SciPy-User at scipy.org > > > > > > > > >> > > > > http://mail.scipy.org/mailman/listinfo/scipy-user > > > > > > > > > > > > > > > > > > > > _______________________________________________ > > > > SciPy-User mailing list > > > > SciPy-User at scipy.org > > > > > > > http://mail.scipy.org/mailman/listinfo/scipy-user > > > > > > > _______________________________________________ > > > SciPy-User mailing list > > > SciPy-User at scipy.org > > > > > > http://mail.scipy.org/mailman/listinfo/scipy-user > > > > > > > > > > > > > > > _______________________________________________ > > > SciPy-User mailing list > > > SciPy-User at scipy.org > > > http://mail.scipy.org/mailman/listinfo/scipy-user > > > > > _______________________________________________ > > SciPy-User mailing list > > SciPy-User at scipy.org > > http://mail.scipy.org/mailman/listinfo/scipy-user > > > > > > > > _______________________________________________ > > SciPy-User mailing list > > SciPy-User at scipy.org > > http://mail.scipy.org/mailman/listinfo/scipy-user > > > > > > > > > > _______________________________________________ > > SciPy-User mailing list > > SciPy-User at scipy.org > > http://mail.scipy.org/mailman/listinfo/scipy-user > > > _______________________________________________ > SciPy-User mailing list > SciPy-User at scipy.org > http://mail.scipy.org/mailman/listinfo/scipy-user > -------------- next part -------------- An HTML attachment was scrubbed... URL: From ralf.gommers at gmail.com Sat Feb 7 03:47:35 2015 From: ralf.gommers at gmail.com (Ralf Gommers) Date: Sat, 7 Feb 2015 09:47:35 +0100 Subject: [SciPy-User] News about EuroSciPy 2015? In-Reply-To: <54D0B720.6020501@yahoo.it> References: <54D0B720.6020501@yahoo.it> Message-ID: On Tue, Feb 3, 2015 at 12:55 PM, Paolo Zaffino wrote: > Dear all, > I would like to know if there is any news about EuroSciPy 2015. > Hi Paolo, there should be an announcement shortly, but as usual it should be the last week of August. Cheers, Ralf -------------- next part -------------- An HTML attachment was scrubbed... URL: From almar.klein at gmail.com Sat Feb 7 11:20:17 2015 From: almar.klein at gmail.com (Almar Klein) Date: Sat, 07 Feb 2015 17:20:17 +0100 Subject: [SciPy-User] ANN: imageio v1.1 In-Reply-To: References: <54D23007.6060204@gmail.com> <54D33813.4010507@gmail.com> <54D339EE.2070102@gmail.com> <54D3E1A4.5060101@gmail.com> Message-ID: <54D63B41.20707@gmail.com> > At least on linux it is definitively possible to set the fps via ffmpeg. > The following command works fine on my computer: > hkt at HP-Z200:~/.imageio/ffmpeg$ ./ffmpeg.linux64 -f v4l2 *-framerate 25* > -video_size 640x480 -i /dev/video0 output.mkv Great! Do you feel like submitting a pull request for this? Should be a relatively easy one. The code should be somewhere in imageio/plugins/ffmpeg.py. Otherwise I can do it up when I have a chance. - Almar > > I found the information at https://trac.ffmpeg.org/wiki/Capture/Webcam. > It looks like it should work on windows too. But, I'm less certain about > OS X. > > Best regards, > Hjalmar > > > On Thu, Feb 5, 2015 at 6:33 PM, Almar Klein > wrote: > > Hi Hjalmar, > > Currently, there is no way to set fps for the webcam directly. You can > set the size though, which is likely to affect the fps (smaller size -> > higher fps. Just add e.g. ``size='768x576'`` to the arguments. Similarly > you can set the pixelformat. See > http://imageio.readthedocs.org/en/latest/format_ffmpeg.html > > I am not sure if setting fps directly is possible via ffmepg. You could > look into it. I welcome a PR :) > > - Almar > > > On 05-02-15 17:54, Hjalmar Turesson wrote: > > Hi, > > > > It looks and works beautifully. > > But... is there a way of setting the frame rate for webcams? I see that > > one can set fps for a writer, but I cannot find a way to set fps for a > > reader. And when using a webcam it makes sense to be able to control the > > fps. > > > > Thanks a lot! > > Hjalmar > > > > On Thu, Feb 5, 2015 at 6:40 AM, Christophe Bal > > >> wrote: > > > > That's a very good point so I will play with your library which has > > a so easy to use interface (I really like the way to walk through > > the frames of video). > > > > Thanks a lot for your answers ! > > > > > > *Christophe BAL* > > *Enseignant de math?matiques en Lyc?e **et d?veloppeur Python amateur* > > *---* > > *French math teacher in a "Lyc?e" **and **Python **amateur developer* > > > > 2015-02-05 10:37 GMT+01:00 Almar Klein > > >>: > > > > > Working with pictures can be slow with Python so I would like to know if > > > imageio is a fast, or a slow package, or a medium one ? > > > > Imageio only reads and writes images. It does that pretty fast. E.g. > > png/jpg and other common formats are handled via the FreeImage > > library. > > Video via ffmpeg. > > > > When reading an image it yields a numpy array. For processing > > the data, > > you need to use other tools, e.g. scikit-image. > > > > - Almar > > > > > > > > > > > > *Christophe BAL* > > > *Enseignant de math?matiques en Lyc?e **et d?veloppeur Python amateur* > > > *---* > > > *French math teacher in a "Lyc?e" **and **Python **amateur developer* > > > > > > 2015-02-05 10:29 GMT+01:00 Almar Klein > > > > > >>>: > > > > > > > > > > This looks nice. Is there some perfomance issue ? > > > > > > How do you mean? > > > > > > - Almar > > > > > > > > > > > > > > > > > > *Christophe BAL* > > > > *Enseignant de math?matiques en Lyc?e **et d?veloppeur Python > > > amateur* > > > > *---* > > > > *French math teacher in a "Lyc?e" **and **Python **amateur developer* > > > > > > > > 2015-02-05 9:34 GMT+01:00 Philipp A. > > > > > >> > > > > > > > > > > >>>>: > > > > > > > > this really fills a niche well. good job! > > > > > > > > Almar Klein > > > > > > > >> > > > > > > >>>> > > > > schrieb am Wed Feb 04 2015 at 15:43:47: > > > > > > > > Imageio is a Python library that provides > an easy interface to > > > > read and > > > > write a wide range of image data, > including animated images. video, > > > > volumetric data, and scientific formats. > It is cross-platform, > > > > runs on > > > > Python 2.x and 3.x, and is easy to install. > > > > > > > > More information:http://imageio.github.io/ > > > > Release notes: > > > > >http://imageio.readthedocs.__org/en/latest/releasenotes.__html > > > > > > > > > > > > > Regards, > > > > Almar > > > > > _________________________________________________ > > > > SciPy-User mailing list > > > >SciPy-User at scipy.org > > > > >> > > > > > > > > >>> > > > >http://mail.scipy.org/mailman/__listinfo/scipy-user > > > > > > > > > > > > > > > > > _______________________________________________ > > > > SciPy-User mailing list > > > >SciPy-User at scipy.org > > > > >> > > > > > > > > >>> > > > > http://mail.scipy.org/mailman/listinfo/scipy-user > > > > > > > > > > > > > > > > > > > > _______________________________________________ > > > > SciPy-User mailing list > > > > SciPy-User at scipy.org > > > > >> > > > > http://mail.scipy.org/mailman/listinfo/scipy-user > > > > > > > _______________________________________________ > > > SciPy-User mailing list > > > SciPy-User at scipy.org > > > > >> > > > http://mail.scipy.org/mailman/listinfo/scipy-user > > > > > > > > > > > > > > > _______________________________________________ > > > SciPy-User mailing list > > > SciPy-User at scipy.org > > > > > http://mail.scipy.org/mailman/listinfo/scipy-user > > > > > _______________________________________________ > > SciPy-User mailing list > > SciPy-User at scipy.org > > > > http://mail.scipy.org/mailman/listinfo/scipy-user > > > > > > > > _______________________________________________ > > SciPy-User mailing list > > SciPy-User at scipy.org > > > > http://mail.scipy.org/mailman/listinfo/scipy-user > > > > > > > > > > _______________________________________________ > > SciPy-User mailing list > > SciPy-User at scipy.org > > http://mail.scipy.org/mailman/listinfo/scipy-user > > > _______________________________________________ > SciPy-User mailing list > SciPy-User at scipy.org > http://mail.scipy.org/mailman/listinfo/scipy-user > > > > > _______________________________________________ > SciPy-User mailing list > SciPy-User at scipy.org > http://mail.scipy.org/mailman/listinfo/scipy-user > From hturesson at gmail.com Mon Feb 9 07:26:27 2015 From: hturesson at gmail.com (Hjalmar Turesson) Date: Mon, 9 Feb 2015 09:26:27 -0300 Subject: [SciPy-User] ANN: imageio v1.1 In-Reply-To: <54D63B41.20707@gmail.com> References: <54D23007.6060204@gmail.com> <54D33813.4010507@gmail.com> <54D339EE.2070102@gmail.com> <54D3E1A4.5060101@gmail.com> <54D63B41.20707@gmail.com> Message-ID: I'll submit a pull request. Best, Hjalmar On Sat, Feb 7, 2015 at 1:20 PM, Almar Klein wrote: > > > At least on linux it is definitively possible to set the fps via ffmpeg. > > The following command works fine on my computer: > > hkt at HP-Z200:~/.imageio/ffmpeg$ ./ffmpeg.linux64 -f v4l2 *-framerate 25* > > -video_size 640x480 -i /dev/video0 output.mkv > > Great! Do you feel like submitting a pull request for this? Should be a > relatively easy one. The code should be somewhere in > imageio/plugins/ffmpeg.py. > > Otherwise I can do it up when I have a chance. > > - Almar > > > > > I found the information at https://trac.ffmpeg.org/wiki/Capture/Webcam. > > It looks like it should work on windows too. But, I'm less certain about > > OS X. > > > > Best regards, > > Hjalmar > > > > > > On Thu, Feb 5, 2015 at 6:33 PM, Almar Klein > > wrote: > > > > Hi Hjalmar, > > > > Currently, there is no way to set fps for the webcam directly. You > can > > set the size though, which is likely to affect the fps (smaller size > -> > > higher fps. Just add e.g. ``size='768x576'`` to the arguments. > Similarly > > you can set the pixelformat. See > > http://imageio.readthedocs.org/en/latest/format_ffmpeg.html > > > > I am not sure if setting fps directly is possible via ffmepg. You > could > > look into it. I welcome a PR :) > > > > - Almar > > > > > > On 05-02-15 17:54, Hjalmar Turesson wrote: > > > Hi, > > > > > > It looks and works beautifully. > > > But... is there a way of setting the frame rate for webcams? I see > that > > > one can set fps for a writer, but I cannot find a way to set fps > for a > > > reader. And when using a webcam it makes sense to be able to > control the > > > fps. > > > > > > Thanks a lot! > > > Hjalmar > > > > > > On Thu, Feb 5, 2015 at 6:40 AM, Christophe Bal < > projetmbc at gmail.com > > > >> wrote: > > > > > > That's a very good point so I will play with your library > which has > > > a so easy to use interface (I really like the way to walk > through > > > the frames of video). > > > > > > Thanks a lot for your answers ! > > > > > > > > > *Christophe BAL* > > > *Enseignant de math?matiques en Lyc?e **et d?veloppeur Python > amateur* > > > *---* > > > *French math teacher in a "Lyc?e" **and **Python **amateur > developer* > > > > > > 2015-02-05 10:37 GMT+01:00 Almar Klein > > > >>>: > > > > > > > Working with pictures can be slow with Python so I would > like to know if > > > > imageio is a fast, or a slow package, or a medium one ? > > > > > > Imageio only reads and writes images. It does that pretty > fast. E.g. > > > png/jpg and other common formats are handled via the > FreeImage > > > library. > > > Video via ffmpeg. > > > > > > When reading an image it yields a numpy array. For > processing > > > the data, > > > you need to use other tools, e.g. scikit-image. > > > > > > - Almar > > > > > > > > > > > > > > > > > *Christophe BAL* > > > > *Enseignant de math?matiques en Lyc?e **et d?veloppeur > Python amateur* > > > > *---* > > > > *French math teacher in a "Lyc?e" **and **Python > **amateur developer* > > > > > > > > 2015-02-05 10:29 GMT+01:00 Almar Klein < > almar.klein at gmail.com > > > > > > > > > >>>: > > > > > > > > > > > > > This looks nice. Is there some perfomance issue ? > > > > > > > > How do you mean? > > > > > > > > - Almar > > > > > > > > > > > > > > > > > > > > > > > *Christophe BAL* > > > > > *Enseignant de math?matiques en Lyc?e **et > d?veloppeur Python > > > > amateur* > > > > > *---* > > > > > *French math teacher in a "Lyc?e" **and **Python > **amateur developer* > > > > > > > > > > 2015-02-05 9:34 GMT+01:00 Philipp A. < > flying-sheep at web.de > > > > > > > > >> > > > > > flying-sheep at web.de> > > > > > > > > > >>>>>: > > > > > > > > > > this really fills a niche well. good job! > > > > > > > > > > Almar Klein almar.klein at gmail.com> > > > > > > > almar.klein at gmail.com> > > > > >> > > > > almar.klein at gmail.com>> > > > > > > >>>> > > > > > schrieb am Wed Feb 04 2015 at 15:43:47: > > > > > > > > > > Imageio is a Python library that provides > > an easy interface to > > > > > read and > > > > > write a wide range of image data, > > including animated images. video, > > > > > volumetric data, and scientific formats. > > It is cross-platform, > > > > > runs on > > > > > Python 2.x and 3.x, and is easy to > install. > > > > > > > > > > More information: > http://imageio.github.io/ > > > > > Release notes: > > > > > > >http://imageio.readthedocs.__org/en/latest/releasenotes.__html > > > > > > > > > > > > > > > > > Regards, > > > > > Almar > > > > > > > _________________________________________________ > > > > > SciPy-User mailing list > > > > >SciPy-User at scipy.org > > > > > > > > > >> > > > > > > > > > > > > > > >>>> > > > > > > http://mail.scipy.org/mailman/__listinfo/scipy-user > > > > > > > > > > > > > > > > > > > > > > > _______________________________________________ > > > > > SciPy-User mailing list > > > > >SciPy-User at scipy.org > > > > > > > > > >> > > > > > > > > > > > > > > >>>> > > > > > > http://mail.scipy.org/mailman/listinfo/scipy-user > > > > > > > > > > > > > > > > > > > > > > > > > _______________________________________________ > > > > > SciPy-User mailing list > > > > > SciPy-User at scipy.org > > > > > > > > > >> > > > > > > http://mail.scipy.org/mailman/listinfo/scipy-user > > > > > > > > > _______________________________________________ > > > > SciPy-User mailing list > > > > SciPy-User at scipy.org > > > > > > > > >> > > > > http://mail.scipy.org/mailman/listinfo/scipy-user > > > > > > > > > > > > > > > > > > > > _______________________________________________ > > > > SciPy-User mailing list > > > > SciPy-User at scipy.org > > > > > > > http://mail.scipy.org/mailman/listinfo/scipy-user > > > > > > > _______________________________________________ > > > SciPy-User mailing list > > > SciPy-User at scipy.org > > > > > > http://mail.scipy.org/mailman/listinfo/scipy-user > > > > > > > > > > > > _______________________________________________ > > > SciPy-User mailing list > > > SciPy-User at scipy.org > > > > > > http://mail.scipy.org/mailman/listinfo/scipy-user > > > > > > > > > > > > > > > _______________________________________________ > > > SciPy-User mailing list > > > SciPy-User at scipy.org > > > http://mail.scipy.org/mailman/listinfo/scipy-user > > > > > _______________________________________________ > > SciPy-User mailing list > > SciPy-User at scipy.org > > http://mail.scipy.org/mailman/listinfo/scipy-user > > > > > > > > > > _______________________________________________ > > SciPy-User mailing list > > SciPy-User at scipy.org > > http://mail.scipy.org/mailman/listinfo/scipy-user > > > _______________________________________________ > SciPy-User mailing list > SciPy-User at scipy.org > http://mail.scipy.org/mailman/listinfo/scipy-user > -------------- next part -------------- An HTML attachment was scrubbed... URL: From jni.soma at gmail.com Wed Feb 11 06:36:22 2015 From: jni.soma at gmail.com (Juan Nunez-Iglesias) Date: Wed, 11 Feb 2015 03:36:22 -0800 (PST) Subject: [SciPy-User] Sign or weights reversal in ndimage.convolve? Message-ID: <1423654581913.e2b6fb89@Nodemailer> Hi, Can someone clear up exactly what ndimage.convolve does with the weights input? Here's an example session: In [1]: sig = np.array([0, 0, 1, 1, 0, 0]) In [2]: w = np.array([-1, 1]) In [3]: from scipy import ndimage as nd In [4]: nd.convolve(sig, w) Out[4]: array([ 0, -1,? 0,? 1,? 0,? 0]) I would have expected the output to be [0, 1, 0, -1, 0, 0]. ie: out[1] = sig[1]w[0] + sig[2]w[1] = 0 * -1 + 1 * 1 = 1. Where am I going wrong? Thanks! Juan. -------------- next part -------------- An HTML attachment was scrubbed... URL: From jni.soma at gmail.com Wed Feb 11 06:51:09 2015 From: jni.soma at gmail.com (Juan Nunez-Iglesias) Date: Wed, 11 Feb 2015 03:51:09 -0800 (PST) Subject: [SciPy-User] Sign or weights reversal in ndimage.convolve? In-Reply-To: <1423654581913.e2b6fb89@Nodemailer> References: <1423654581913.e2b6fb89@Nodemailer> Message-ID: <1423655469380.8f53dd2f@Nodemailer> Erm, never mind, a quick trip to Wikipedia shows that I was confusing convolution with cross-correlation. Sorry for the noise! =) http://en.wikipedia.org/wiki/Convolution On Wed, Feb 11, 2015 at 10:36 PM, Juan Nunez-Iglesias wrote: > Hi, > Can someone clear up exactly what ndimage.convolve does with the weights input? Here's an example session: > In [1]: sig = np.array([0, 0, 1, 1, 0, 0]) > In [2]: w = np.array([-1, 1]) > In [3]: from scipy import ndimage as nd > In [4]: nd.convolve(sig, w) > Out[4]: array([ 0, -1,? 0,? 1,? 0,? 0]) > I would have expected the output to be [0, 1, 0, -1, 0, 0]. ie: > out[1] = sig[1]w[0] + sig[2]w[1] = 0 * -1 + 1 * 1 = 1. > Where am I going wrong? > Thanks! > Juan. -------------- next part -------------- An HTML attachment was scrubbed... URL: From daan.wynen at inria.fr Tue Feb 17 04:35:14 2015 From: daan.wynen at inria.fr (Daan Wynen) Date: Tue, 17 Feb 2015 10:35:14 +0100 Subject: [SciPy-User] Scale Volume to Specific Size Message-ID: <54E30B52.6030906@inria.fr> Hi All, just checking I am not missing sth here (usually I am). I am trying to scale a 4D array (1 time dimension, 2 space dimensions, 1 color channel dimension) to a specific size. That is, the last dimension remain unchanged. The way I see it, misc.imresize() only handles images, and ndimage.zoom() doesn't allow to pass the resulting shape but only the scaling factors. Are there any other functions that do that, or should I just go ahead and calculate the appropriate scales for zoom()? Thanks /Daan From almar.klein at gmail.com Wed Feb 18 05:33:02 2015 From: almar.klein at gmail.com (Almar Klein) Date: Wed, 18 Feb 2015 11:33:02 +0100 Subject: [SciPy-User] ANN: IEP v3.6 (and also Pyzo 2015a) Message-ID: <54E46A5E.1070306@gmail.com> Hi all, I am pleased to announce a new release of the Interactive Editor for Python (IEP). Some notable improvements are support for Jython, a new command history tool, and smart copy-pasting. For a complete list of fixes and improvements see https://bitbucket.org/iep-project/iep/wiki/Release%20notes IEP is available on Pypi, and as always, binary downloads are available at http://www.iep-project.org/downloads.html We also build a new version of Pyzo, a conda-based scientific Python distribution that uses IEP as its IDE. Happy coding! Almar From ghisvail at gmail.com Wed Feb 18 14:36:54 2015 From: ghisvail at gmail.com (Ghislain Antony Vaillant) Date: Wed, 18 Feb 2015 19:36:54 +0000 (UTC) Subject: [SciPy-User] ANN: IEP v3.6 (and also Pyzo 2015a) References: <54E46A5E.1070306@gmail.com> Message-ID: Almar Klein gmail.com> writes: > > Hi all, > > I am pleased to announce a new release of the Interactive Editor for > Python (IEP). > > Some notable improvements are support for Jython, a new command history > tool, and smart copy-pasting. For a complete list of fixes and > improvements see https://bitbucket.org/iep-project/iep/wiki/Release%20notes > > IEP is available on Pypi, and as always, binary downloads are available > at http://www.iep-project.org/downloads.html > > We also build a new version of Pyzo, a conda-based scientific Python > distribution that uses IEP as its IDE. > > Happy coding! > Almar > Good job Almar, I'll update the PPA [1] at some point during the week. I have been using IEP for over a month and I am loving it. Thanks, Ghis [1] https://launchpad.net/~ghisvail/+archive/ubuntu/iep From raniere at ime.unicamp.br Thu Feb 19 07:04:09 2015 From: raniere at ime.unicamp.br (Raniere Silva) Date: Thu, 19 Feb 2015 10:04:09 -0200 Subject: [SciPy-User] Google Summer of Code and NumFOCUS Message-ID: <20150219120408.GB16143@pupunha> Hi, NumFOCUS has promotes and supports the ongoing research and development of open-source computing tools including SciPy. This year NumFOCUS want to try be a Google Summer of Code "umbrella" mentoring organization, Umbrella organizations are mentoring organizations accepted into the Google Summer of Code program that have other open source organizations working "under" them. Sometime organizations that work very closely or have very similar goals or communities may get put together under an "umbrella." Google stills expects all organizations under the umbrella, whether accepted into the program under their title or not, to adhere to all the rules and regulations of the program. From https://www.google-melange.com/gsoc/document/show/gsoc_program/google/gsoc2015/help_page#umbrella_organization To help promote and support SciPy. We encourage SciPy to apply to Google Summer of Code under your own title and will be very happy if you can also do with us. If you are interested, please check https://github.com/swcarpentry/gsoc2015 and https://github.com/swcarpentry/gsoc2015/blob/master/CONTRIBUTING.md. If you have any question, please email me directly. Thanks in advance, Raniere -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 819 bytes Desc: not available URL: From thomas.robitaille at gmail.com Thu Feb 19 10:18:00 2015 From: thomas.robitaille at gmail.com (Thomas Robitaille) Date: Thu, 19 Feb 2015 15:18:00 +0000 Subject: [SciPy-User] ANN: Astropy v1.0 released Message-ID: Dear colleagues, We are very happy to announce the fourth major public release (v1.0) of the astropy package, a core Python package for Astronomy: http://www.astropy.org Astropy is a community-driven Python package intended to contain much of the core functionality and common tools needed for astronomy and astrophysics. New and improved major functionality in this release includes: * Support for Altitude/Azimuth and Galactocentric coordinates in astropy.coordinates * A new astropy.visualization sub-package * A new astropy.analytic_functions sub-package * Compound models in astropy.modeling may now be created using arithmetic expressions, and the resulting models support fitting. * Significantly faster C-based readers/writers for astropy.io.ascii * Support for a new enhanced CSV ASCII table format * A refactored Table class with improved performance when adding/removing columns * Support for using Time, Quantity, or SkyCoord arrays as Table columns In addition, hundreds of smaller improvements and fixes have been made. An overview of the changes is provided at: http://docs.astropy.org/en/stable/whatsnew/1.0.html Astropy v1.0 is a special release that we are denoting a Long Term Support (LTS) release, which means that we will be supporting it with bug fixes for the next two years, rather than the usual six months. More information about this can be found at the link above. Instructions for installing Astropy are provided on our website, and extensive documentation can be found at: http://docs.astropy.org In particular, if you use the Anaconda Python Distribution, you can update to v1.0 with: conda update astropy Whereas if you usually use pip, you can do: pip install astropy --upgrade Please report any issues, or request new features via our GitHub repository: https://github.com/astropy/astropy/issues Over 122 developers have contributed code to Astropy so far, and you can find out more about the team behind Astropy here: http://www.astropy.org/team.html If you use Astropy directly for your work, or as a dependency to another package, please remember to include the following acknowledgment at the end of papers: """ This research made use of Astropy, a community-developed core Python package for Astronomy (Astropy Collaboration, 2013). """ where (Astropy Collaboration, 2013) is a reference to the Astropy paper: http://dx.doi.org/10.1051/0004-6361/201322068 Please feel free to forward this announcement to anyone you think might be interested in this release. We hope that you enjoy using Astropy as much as we enjoyed developing it! Thomas Robitaille, Erik Tollerud, and Perry Greenfield on behalf of The Astropy Collaboration From josh at levykramer.co.uk Thu Feb 19 10:35:51 2015 From: josh at levykramer.co.uk (Josh Levy-Kramer) Date: Thu, 19 Feb 2015 15:35:51 +0000 Subject: [SciPy-User] Symmetric sparse matrix Message-ID: Hi, When constructing spares matrices it would be very useful to have a built-in functionality for symmetric matrices. For a symmetric matrix this could roughly half the memory usage. It seems strange that such a feature dosn't already exist in Numpy/Scipy, as symmetric matrices are common in scientific work. I would like to request this feature to be built into Scipy. I am aware this has been asked before on the mailing list and my response is that my matrices are 'positively gigantic'. See: http://article.gmane.org/gmane.comp.python.scientific.user/21973 Many thanks, Josh -------------- next part -------------- An HTML attachment was scrubbed... URL: From eptune at gmail.com Thu Feb 19 11:22:17 2015 From: eptune at gmail.com (Erik Petigura) Date: Thu, 19 Feb 2015 08:22:17 -0800 Subject: [SciPy-User] ANN: Astropy v1.0 released In-Reply-To: References: Message-ID: <4AB5E0D2-F488-4FA1-BE46-0C94F62B148C@gmail.com> Dear Astropy Team, Thanks for all your hard work developing this extraordinary package. I use it extensively in my research involving extrasolar planets. Many Thanks, Erik On Feb 19, 2015, at 7:18 AM, Thomas Robitaille wrote: > Dear colleagues, > > We are very happy to announce the fourth major public release (v1.0) > of the astropy package, a core Python package for Astronomy: > > http://www.astropy.org > > Astropy is a community-driven Python package intended to contain much > of the core functionality and common tools needed for astronomy and > astrophysics. > > New and improved major functionality in this release includes: > > * Support for Altitude/Azimuth and Galactocentric coordinates in > astropy.coordinates > * A new astropy.visualization sub-package > * A new astropy.analytic_functions sub-package > * Compound models in astropy.modeling may now be created using > arithmetic expressions, and the resulting models support fitting. > * Significantly faster C-based readers/writers for astropy.io.ascii > * Support for a new enhanced CSV ASCII table format > * A refactored Table class with improved performance when > adding/removing columns > * Support for using Time, Quantity, or SkyCoord arrays as Table columns > > In addition, hundreds of smaller improvements and fixes have been > made. An overview of the changes is provided at: > > http://docs.astropy.org/en/stable/whatsnew/1.0.html > > Astropy v1.0 is a special release that we are denoting a Long Term > Support (LTS) release, which means that we will be supporting it with > bug fixes for the next two years, rather than the usual six months. > More information about this can be found at the link above. > > Instructions for installing Astropy are provided on our website, and > extensive documentation can be found at: > > http://docs.astropy.org > > In particular, if you use the Anaconda Python Distribution, you can > update to v1.0 with: > > conda update astropy > > Whereas if you usually use pip, you can do: > > pip install astropy --upgrade > > Please report any issues, or request new features via our GitHub repository: > > https://github.com/astropy/astropy/issues > > Over 122 developers have contributed code to Astropy so far, and you > can find out more about the team behind Astropy here: > > http://www.astropy.org/team.html > > If you use Astropy directly for your work, or as a dependency to > another package, please remember to include the following > acknowledgment at the end of papers: > > """ > This research made use of Astropy, a community-developed core Python > package for Astronomy (Astropy Collaboration, 2013). > """ > > where (Astropy Collaboration, 2013) is a reference to the Astropy paper: > > http://dx.doi.org/10.1051/0004-6361/201322068 > > Please feel free to forward this announcement to anyone you think > might be interested in this release. > > We hope that you enjoy using Astropy as much as we enjoyed developing it! > > Thomas Robitaille, Erik Tollerud, and Perry Greenfield > on behalf of The Astropy Collaboration > _______________________________________________ > SciPy-User mailing list > SciPy-User at scipy.org > http://mail.scipy.org/mailman/listinfo/scipy-user From L.J.Buitinck at uva.nl Fri Feb 20 09:41:51 2015 From: L.J.Buitinck at uva.nl (Lars Buitinck) Date: Fri, 20 Feb 2015 15:41:51 +0100 Subject: [SciPy-User] [Symmetric sparse matrix] Message-ID: 2015-02-19 19:00 GMT+01:00 : > Date: Thu, 19 Feb 2015 15:35:51 +0000 > From: Josh Levy-Kramer > Subject: [SciPy-User] Symmetric sparse matrix > To: scipy-user at scipy.org > Message-ID: > > Content-Type: text/plain; charset="utf-8" > > Hi, > > When constructing spares matrices it would be very useful to have a > built-in functionality for symmetric matrices. For a symmetric matrix this > could roughly half the memory usage. It seems strange that such a feature > dosn't already exist in Numpy/Scipy, as symmetric matrices are common in > scientific work. > > I would like to request this feature to be built into Scipy. I am aware > this has been asked before on the mailing list and my response is that my > matrices are 'positively gigantic'. See: > http://article.gmane.org/gmane.comp.python.scientific.user/21973 Maybe scipy.sparse.linalg [1] could help here: In [1]: A = np.tril(arange(100).reshape(10, 10)) In [2]: A Out[2]: array([[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [10, 11, 0, 0, 0, 0, 0, 0, 0, 0], [20, 21, 22, 0, 0, 0, 0, 0, 0, 0], [30, 31, 32, 33, 0, 0, 0, 0, 0, 0], [40, 41, 42, 43, 44, 0, 0, 0, 0, 0], [50, 51, 52, 53, 54, 55, 0, 0, 0, 0], [60, 61, 62, 63, 64, 65, 66, 0, 0, 0], [70, 71, 72, 73, 74, 75, 76, 77, 0, 0], [80, 81, 82, 83, 84, 85, 86, 87, 88, 0], [90, 91, 92, 93, 94, 95, 96, 97, 98, 99]]) In [3]: from scipy.sparse.linalg import aslinearoperator In [4]: Asymm = aslinearoperator(A) + aslinearoperator(A.T) In [5]: v = np.random.randn(10) In [6]: v Out[6]: array([-1.57187455, 0.29586824, 0.78213675, -0.81203632, -0.8434431 , -0.54530479, 0.1875532 , -0.19030021, 1.92867268, 0.89577576]) In [7]: Asymm.dot(v) Out[7]: array([ 166.08317475, 155.31790208, 157.91335086, 109.59136522, 87.65096238, 75.55360192, 93.79904031, 44.33055552, 204.55730816, 116.72440766]) In [8]: A.dot(v) + A.T.dot(v) Out[8]: array([ 166.08317475, 155.31790208, 157.91335086, 109.59136522, 87.65096238, 75.55360192, 93.79904031, 44.33055552, 204.55730816, 116.72440766]) aslinearoperator(A) + aslinearoperator(A.T) only allocates a tiny new object that offloads dot products to its summands and combines the result. The example uses arrays, but the package can also use sparse matrices. Also, the dot product is computed twice, but you can build custom linear operators that only compute the result once. [1] http://docs.scipy.org/doc/scipy/reference/sparse.linalg.html -- note that the package was recently expanded and fixed in various places (by yours truly), but the new docs are not online yet. From ralf.gommers at gmail.com Fri Feb 20 10:53:05 2015 From: ralf.gommers at gmail.com (Ralf Gommers) Date: Fri, 20 Feb 2015 16:53:05 +0100 Subject: [SciPy-User] [Numpy-discussion] Google Summer of Code and NumFOCUS In-Reply-To: <20150219120315.GA16143@pupunha> References: <20150219120315.GA16143@pupunha> Message-ID: Hi Raniere, On Thu, Feb 19, 2015 at 1:03 PM, Raniere Silva wrote: > Hi, > > NumFOCUS has promotes and supports the ongoing research and development of > open-source computing tools including NumPy. > > This year NumFOCUS want to try be a Google Summer of Code > "umbrella" mentoring organization, > > Umbrella organizations are mentoring organizations accepted into the > Google > Summer of Code program that have other open source organizations > working > "under" them. Sometime organizations that work very closely or have > very > similar goals or communities may get put together under an "umbrella." > Google stills expects all organizations under the umbrella, whether > accepted > into the program under their title or not, to adhere to all the rules > and > regulations of the program. > > From > https://www.google-melange.com/gsoc/document/show/gsoc_program/google/gsoc2015/help_page#umbrella_organization > > To help promote and support NumPy. > > We encourage NumPy to apply to Google Summer of Code under your own title > and will be very happy if you can also do with us. > If you are interested, please check > https://github.com/swcarpentry/gsoc2015 > and https://github.com/swcarpentry/gsoc2015/blob/master/CONTRIBUTING.md. > > If you have any question, please email me directly. > Thanks for the enthusiasm in getting Numfocus set up as a new mentoring org - I'm sure that this will be useful for the long term. I'm not sure if you're aware that Numpy, Scipy and many other scientific Python projects have been participating under the umbrella of the PSF for a number of years already (see https://wiki.python.org/moin/SummerOfCode/2014). For this year we'd like to keep it that way. I'll email you privately with more details and to see if I can help you in any way. Cheers, Ralf -------------- next part -------------- An HTML attachment was scrubbed... URL: From raniere at ime.unicamp.br Fri Feb 20 11:19:00 2015 From: raniere at ime.unicamp.br (Raniere Silva) Date: Fri, 20 Feb 2015 14:19:00 -0200 Subject: [SciPy-User] [Numpy-discussion] Google Summer of Code and NumFOCUS In-Reply-To: References: <20150219120315.GA16143@pupunha> Message-ID: <20150220161900.GF12853@pupunha> Hi Ralf, > Thanks for the enthusiasm in getting Numfocus set up as a new mentoring org > - I'm sure that this will be useful for the long term. Thanks for your email. > I'm not sure if > you're aware that Numpy, Scipy and many other scientific Python projects > have been participating under the umbrella of the PSF for a number of years > already (see https://wiki.python.org/moin/SummerOfCode/2014). Yes, I'm aware of it. I only care that every project have the opportunity to participate at GSoC and participants have fun during it. =) > For this year we'd like to keep it that way. No problem for me. I hope that we can work together on this next year. Raniere -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 819 bytes Desc: not available URL: From daniele at grinta.net Fri Feb 20 11:34:53 2015 From: daniele at grinta.net (Daniele Nicolodi) Date: Fri, 20 Feb 2015 17:34:53 +0100 Subject: [SciPy-User] Bug in interpolate.splrep() or am I doing something wrong? Message-ID: <54E7622D.2050402@grinta.net> Hello, reading the documentation, I would expect this to work: > x = np.linspace(0, 2.0 * np.pi, 1000) > y = np.sin(x) + np.random.randn(x.shape[0]) * 0.2 > tck0 = interpolate.splrep(x, y, task=0, w=np.ones(x.shape[0])/0.2) > tck1 = interpolate.splrep(x, y, task=1, w=np.ones(x.shape[0])/0.1) however, the second splrep() call fails: > Traceback (most recent call last): > File "test-splrep.py", line 17, in > main() > File "test-splrep.py", line 9, in main > tck1 = interpolate.splrep(x, y, task=1, w=np.ones(x.shape[0])/0.1) > File "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/scipy/interpolate/fitpack.py", line 495, in splrep > t = _curfit_cache['t'] > UnboundLocalError: local variable '_curfit_cache' referenced before assignment This is with scipy 0.15.1. Cheers, Daniele From evgeny.burovskiy at gmail.com Fri Feb 20 11:45:19 2015 From: evgeny.burovskiy at gmail.com (Evgeni Burovski) Date: Fri, 20 Feb 2015 16:45:19 +0000 Subject: [SciPy-User] Bug in interpolate.splrep() or am I doing something wrong? In-Reply-To: <54E7622D.2050402@grinta.net> References: <54E7622D.2050402@grinta.net> Message-ID: Hi Daniele, There is a pull request, but it stalled: https://github.com/scipy/scipy/pull/2884 The PR and the associated issue have some guidance on how to proceed for fixing this. HTH, Evgeni On Fri, Feb 20, 2015 at 4:34 PM, Daniele Nicolodi wrote: > Hello, > > reading the documentation, I would expect this to work: > >> x = np.linspace(0, 2.0 * np.pi, 1000) >> y = np.sin(x) + np.random.randn(x.shape[0]) * 0.2 >> tck0 = interpolate.splrep(x, y, task=0, w=np.ones(x.shape[0])/0.2) >> tck1 = interpolate.splrep(x, y, task=1, w=np.ones(x.shape[0])/0.1) > > however, the second splrep() call fails: > >> Traceback (most recent call last): >> File "test-splrep.py", line 17, in >> main() >> File "test-splrep.py", line 9, in main >> tck1 = interpolate.splrep(x, y, task=1, w=np.ones(x.shape[0])/0.1) >> File "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/scipy/interpolate/fitpack.py", line 495, in splrep >> t = _curfit_cache['t'] >> UnboundLocalError: local variable '_curfit_cache' referenced before assignment > > > This is with scipy 0.15.1. > > Cheers, > Daniele > _______________________________________________ > SciPy-User mailing list > SciPy-User at scipy.org > http://mail.scipy.org/mailman/listinfo/scipy-user From Roger.Robinson at evotec.com Tue Feb 24 11:11:11 2015 From: Roger.Robinson at evotec.com (Robinson, Roger) Date: Tue, 24 Feb 2015 16:11:11 +0000 Subject: [SciPy-User] Scipy with pip compliation problems on Centos 6.6 Message-ID: <9A317C39B8EE234EA5DAEE7D27DA80274E1272D2@uk-abi-sma05.evotecoai.com> Hi, I am on CentOS 6.6. I have compiled BLAS+ATLAS+LAPACK separately on a network drive. I have python 2.7.9 compiled. Im using this command to install + complie scipy pip install --target=/apps_shared/python/scipy/scipy-0.15.1 scipy I get this error Python 2.7.9 (default, Feb 16 2015, 11:29:23) [GCC 4.4.7 20120313 (Red Hat 4.4.7-11)] on linux2 Type "help", "copyright", "credits" or "license" for more information. >>> from scipy.stats import genextreme Traceback (most recent call last): File "", line 1, in File "/apps_shared/python/scipy/current/scipy/stats/__init__.py", line 338, in from .stats import * File "/apps_shared/python/scipy/current/scipy/stats/stats.py", line 184, in import scipy.special as special File "/apps_shared/python/scipy/current/scipy/special/__init__.py", line 586, in from ._ufuncs import * ImportError: /apps_shared/python/scipy/current/scipy/special/_ufuncs.so: undefined symbol: dstevr_ Any advice ? Thanks Roger [EvotecLogoMail.png] Dr Roger Robinson My Linkedin Profile Systems Developer Computational Chemistry & Cheminformatics +44 (0)1235 441424 (direct) roger.robinson at evotec.com www.evotec.com Evotec(UK) Ltd 114 Innovation Drive Milton Park Abingdon Oxfordshire OX14 4RZ United Kingdom Evotec (UK) Ltd is a limited company registered in England and Wales. Registration number:2674265. Registered office: 114 Innovation Drive, Milton Park, Abingdon, Oxfordshire, OX14 4RZ, United Kingdom. -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: image001.png Type: image/png Size: 1414 bytes Desc: image001.png URL: From jmsachs at gmail.com Tue Feb 24 15:16:42 2015 From: jmsachs at gmail.com (Jason Sachs) Date: Tue, 24 Feb 2015 13:16:42 -0700 Subject: [SciPy-User] library for GF(2) Galois Fields Message-ID: Is there any Python library that can deal with Galois fields, specifically the binary GF(2)? This comes up a lot in communications theory and for linear-feedback shift registers. I would really like to use a library that has things like arithmetic and matrix operations. MATLAB offers this in their Communications Toolbox http://www.mathworks.com/help/comm/galois-field-computations.html I have a rudimentary library for some arithmetic that I've open-sourced (https://bitbucket.org/jason_s/libgf2), but it's not vectorized and it's really not up to the standard of numpy/scipy I think. From rnelsonchem at gmail.com Tue Feb 24 16:05:00 2015 From: rnelsonchem at gmail.com (Ryan Nelson) Date: Tue, 24 Feb 2015 16:05:00 -0500 Subject: [SciPy-User] library for GF(2) Galois Fields In-Reply-To: References: Message-ID: You might want to look at Sage: http://www.sagemath.org/doc/reference/rings_standard/sage/rings/finite_rings/constructor.html Sage itself is very large, but SageMathCloud is a convenient (free) way to test things out: https://cloud.sagemath.com/ Ryan On Tue, Feb 24, 2015 at 3:16 PM, Jason Sachs wrote: > Is there any Python library that can deal with Galois fields, > specifically the binary GF(2)? This comes up a lot in communications > theory and for linear-feedback shift registers. I would really like to > use a library that has things like arithmetic and matrix operations. > MATLAB offers this in their Communications Toolbox > http://www.mathworks.com/help/comm/galois-field-computations.html > > I have a rudimentary library for some arithmetic that I've > open-sourced (https://bitbucket.org/jason_s/libgf2), but it's not > vectorized and it's really not up to the standard of numpy/scipy I > think. > _______________________________________________ > SciPy-User mailing list > SciPy-User at scipy.org > http://mail.scipy.org/mailman/listinfo/scipy-user > -------------- next part -------------- An HTML attachment was scrubbed... URL: From ralf.gommers at gmail.com Wed Feb 25 01:28:03 2015 From: ralf.gommers at gmail.com (Ralf Gommers) Date: Wed, 25 Feb 2015 07:28:03 +0100 Subject: [SciPy-User] Scipy with pip compliation problems on Centos 6.6 In-Reply-To: <9A317C39B8EE234EA5DAEE7D27DA80274E1272D2@uk-abi-sma05.evotecoai.com> References: <9A317C39B8EE234EA5DAEE7D27DA80274E1272D2@uk-abi-sma05.evotecoai.com> Message-ID: On Tue, Feb 24, 2015 at 5:11 PM, Robinson, Roger wrote: > Hi, > > > > I am on CentOS 6.6. I have compiled BLAS+ATLAS+LAPACK separately on a > network drive. > > > > I have python 2.7.9 compiled. > > > > Im using this command to install + complie scipy > > pip install --target=/apps_shared/python/scipy/scipy-0.15.1 scipy > > > > I get this error > > > > Python 2.7.9 (default, Feb 16 2015, 11:29:23) > > [GCC 4.4.7 20120313 (Red Hat 4.4.7-11)] on linux2 > > Type "help", "copyright", "credits" or "license" for more information. > > >>> from scipy.stats import genextreme > > Traceback (most recent call last): > > File "", line 1, in > > File "/apps_shared/python/scipy/current/scipy/stats/__init__.py", line > 338, in > > from .stats import * > > File "/apps_shared/python/scipy/current/scipy/stats/stats.py", line 184, > in > > import scipy.special as special > > File "/apps_shared/python/scipy/current/scipy/special/__init__.py", line > 586, in > > from ._ufuncs import * > > ImportError: /apps_shared/python/scipy/current/scipy/special/_ufuncs.so: > undefined symbol: dstevr_ > > > > Any advice ? > Looks like a problem with the LAPACK (or ATLAS) you compiled. I'm not sure if the network drive and unusual pip command have anything to do with it. To test that, you could first try compiling scipy against a precompiled ATLAS binary for your distribution that is known to work. Ralf -------------- next part -------------- An HTML attachment was scrubbed... URL: From cimrman3 at ntc.zcu.cz Thu Feb 26 11:12:51 2015 From: cimrman3 at ntc.zcu.cz (Robert Cimrman) Date: Thu, 26 Feb 2015 17:12:51 +0100 Subject: [SciPy-User] ANN: SfePy 2015.1 Message-ID: <54EF4603.8090300@ntc.zcu.cz> I am pleased to announce release 2015.1 of SfePy. Description ----------- SfePy (simple finite elements in Python) is a software for solving systems of coupled partial differential equations by the finite element method or by the isogeometric analysis (preliminary support). It is distributed under the new BSD license. Home page: http://sfepy.org Mailing list: http://groups.google.com/group/sfepy-devel Git (source) repository, issue tracker, wiki: http://github.com/sfepy Highlights of this release -------------------------- - support for multiple fields in isogeometric analysis - redesigned handling of solver parameters - new modal analysis example For full release notes see http://docs.sfepy.org/doc/release_notes.html#id1 (rather long and technical). Best regards, Robert Cimrman and Contributors (*) (*) Contributors to this release (alphabetical order): Lubos Kejzlar, Vladimir Lukes From rishabh.sharma at students.iiit.ac.in Fri Feb 27 13:40:45 2015 From: rishabh.sharma at students.iiit.ac.in (rishabh.sharma) Date: Sat, 28 Feb 2015 00:10:45 +0530 Subject: [SciPy-User] Hierarchical clustering query Message-ID: <516226d00d15c0c7e84be33f69683bd9@students.iiit.ac.in> hello I have this question,could someone help? I am using scipy.cluster.hiearchical ***I have a distance matrix in squareform 't' as array([[ 0.00000000e+00, 3.44600000e+03, 6.75000000e+02, 2.06000000e+03, 2.24205600e+06], [ 3.44600000e+03, 0.00000000e+00, 2.77300000e+03, 1.75000000e+03, 2.23959500e+06], [ 6.75000000e+02, 2.77300000e+03, 0.00000000e+00, 1.49100000e+03, 2.24154200e+06], [ 2.06000000e+03, 1.75000000e+03, 1.49100000e+03, 0.00000000e+00, 2.24127000e+06], [ 2.24205600e+06, 2.23959500e+06, 2.24154200e+06, 2.24127000e+06, 0.00000000e+00]]) ***I used this cmd z=linkage(t,method='complete') //t is the above matrix z array([[ 0.00000000e+00, 2.00000000e+00, 1.39718861e+03, 2.00000000e+00], [ 1.00000000e+00, 3.00000000e+00, 3.53484724e+03, 2.00000000e+00], [ 5.00000000e+00, 6.00000000e+00, 5.85696654e+03, 4.00000000e+00], [ 4.00000000e+00, 7.00000000e+00, 5.00927065e+06, 5.00000000e+00]]) **Question: why in the first row of z where objects 0,2 are merged the distance is shown as 1.397e+3[3rd element of 1st row] whereas it should the distance given by t[0][2] as in distance matrix(these objects are original objects/leaf nodes) Thanks