Profiling memory usage of Python code
Friday, April 17th, 2009 Posted in Linux, Python, Scientific computing, Software development | 2 Comments »In a previous post, I explained how to use the Python profiler. The profile is great for finding out which parts of the code run the slowest, or are called most often. However, the profiler doesn't give any information about ...
How to make two mice work with xwindows (x.org)
Friday, April 10th, 2009 Posted in Linux | No Comments »It's a real pain to surf the Web when the batteries die in your wireless mouse or trackball. I use some old rechargeables that are no longer fit for digital camera service, so this happens to me fairly often. My ...
The Python configparser: a way to read simple data files
Tuesday, February 3rd, 2009 Posted in Linux, Software development | 2 Comments »My simulation library, which is written mostly in Python, needs a lot of data and parameters in order to run. In some cases, I just hard-code the values in the script that calls the library, and in other ...
Deploying Python applications on Windows
Thursday, January 15th, 2009 Posted in Linux, Python, Software development | No Comments »Writing applications in Python on a Linux system is almost too easy. Deploying Python apps on other Linux systems is not hard, because most Linux systems already have Python, with its core libraries and tools, installed. Most Linux systems also ...
Scipy.integrate ODEPACK import error solved!
Wednesday, January 14th, 2009 Posted in Linux, Python, Scientific computing | 1 Comment »I recently found a solution to a problem that had been vexing me for about a year. In order to successfully import anything from scipy.integrate, I had edit the file scipy/integrate/__init__.py and comment out the line from odepack import * If ...
Tools for Python software development
Tuesday, January 6th, 2009 Posted in Linux, Python, Software development | No Comments »I have found a few tools over the years that I find extremely useful for developing software. Python is my language of choice at the moment, but I'm sure these tools will be handy for any language. Subversion is an ...
Update 2: building 64-bit Numpy with Intel compilers and MKL
Tuesday, December 9th, 2008 Posted in Linux, Python, Scientific computing | 1 Comment »NOTE: these instructions are obsolete. Please see Building NumPy on a 64-bit Red Hat Cluster with Intel MKL. In a previous post I described how I built Numpy with Intel compilers and the Math Kernel Library on a 64-bit cluster. Today I ...
Using Python to generate XML files for visualization in Paraview
Thursday, November 13th, 2008 Posted in Linux, Python, Software development | No Comments »VTK is an open-source software system for "3D computer graphics, image processing, and visualization" developed by by Kitware. VTK is the foundation of Paraview, an industrial-strength CFD visualization tool that I have found to be very useful. I ...
Updated: building 64-bit Numpy with Intel compilers (icc)
Friday, October 17th, 2008 Posted in Linux, Python | 1 Comment »I had to re-build Numpy because our cluster was upgraded and the Intel compilers and libraries were moved to a different directory. This turned out to be a half-day affair of trial-and-error. I learned a few important things, which I ...
Installing numpy with the Intel Math Kernel Library (mkl)
Friday, September 19th, 2008 Posted in Linux, Scientific computing | 1 Comment »Today I installed numpy on a cluster. Normally, as a Gentoo admin, I just install things with emerge, and all the details are taken care of automagically. However, this cluster runs Red Hat Enterprise, and I don't have ...