Scientific software development, stage lighting, and stuff

Archive for the ‘Software development’ Category

Speeding up Python math with Numpy: collision detection example

Sunday, October 12th, 2008 Posted in Software development, python | No Comments »

Python is a very-high-level language.  That makes it easy to write code quickly, but the program may not be as fast as a program compiled from a lower-level language.  For this reason, many scientific programs are written in Fortran or ...

Python Pickle: Painless binary storage for Python objects

Monday, September 15th, 2008 Posted in Software development, python | No Comments »

The pickle module provided with Python is so useful that I'm surprised I haven't used it before. Pickle allows you to save an entire data structure (such as an object) to disk as a binary file in a effortless ...

Python threads are easy (with example)

Tuesday, August 19th, 2008 Posted in Software development | No Comments »

It's remarkably easy to spawn a Python thread.  However, before doing so, I caution you that a Python thread is not the same thing as an OS thread.  Python threads run within the Python interpreter, but the Python interpreter always ...

Fun with threads in Python and wxPython

Monday, August 11th, 2008 Posted in Software development | No Comments »

I have finally gotten back to programming in the last couple of days.  Our project has finally started to generate a lot of data, so I've been refactoring and improving my code that reads data stored in LabView binaries.  Today ...

Reading Labview binary files with Python

Wednesday, June 25th, 2008 Posted in Software development | 1 Comment »

My research group uses Labview 7.1 to write custom data acquisition (DAQ) software. I code everything else in Python, so I need to get data from Labview into Python for processing. Our DAQ program produces Labview binary files, so ...

Server move completed and general update

Sunday, June 22nd, 2008 Posted in Lighting, Linux, Software development | No Comments »

The site is back online after a server move.  Actually I can't blame the server move for the downtime, because I went out of town and then had a lot of catching up to do, and as a result I ...

Presentation at BarCamp Orlando 2008

Sunday, April 6th, 2008 Posted in Software development | No Comments »

I gave a presentation at BarCamp Orlando on 5 April 2008. Here is a link to my presentation, Data Analysis with Python.

My current Gentoo Linux setup

Monday, November 12th, 2007 Posted in Software development | No Comments »

This post is a reminder to myself more than it is intended for anyone else.  Well, that's most of this blog.  Gentoo is a great distribution of Linux, but you have to install everything yourself. This is a good ...

ODEPACK re-released

Tuesday, September 25th, 2007 Posted in Software development | No Comments »

Minutes ago I uploaded a tarball containing my re-release of ODEPACK, a standard numerical tool for the solution of systems of ordinary differential equations. The algorithms and numerical code are identical to the distribution found on Netlib, but everything ...

Direct access to C++ containers from Python

Thursday, September 13th, 2007 Posted in Software development | No Comments »

In previous examples, I've shown how to pass Python lists into C++ using Boost.python. Because Python lists can contain a mixture of objects of different types, C++ has to use extract<type> to determine what kind of data to get ...