arq5x/scurgen — pull request #15 by daler (2012-09-12 15:58:55+00:00)
Title: proto-GUI, masking, and tests

Changes to hilbert.py:

- mask_low_values() now handles the masked matrix differently. It uses numpy indexing and a numpy masked array to avoid overwriting the original data with zeros.
- mask_low_values() moved to HilbertBase so all subclasses can use it

So now, the original data is always accessed via the .matrix attribute, and the currently-masked version via .masked. Initially, the currently-masked version is identical to the original matrix and only changes when mask_low_values() is called.

The bulk of the changes is the new matplotlib GUI (in plotting.py). Also included are a couple of tests: one for the xy2d/d2xy consistency and one for the matrix masking.