sebzur/translocation — pull request #5 by szabba (2012-05-24 22:04:53+00:00)
Title: Precalculate

I've made some moving and a couple of minor modifications but the main points are:
* Method `Translation.precalculate_ladders` was added. It creates a dict of dicts of dicts of numpy arrays for internal use by the `Translation.select_translation` method.
* A single method for setting the rates replaced the separate ones. It uses a key string to identify the translocation to rate.
* `Translation.select_translation` method now accepts two optional arguments: one specifying the information about the reptons previously moved and currently being moved to limit the set of possible choices, and another used to set whether the rates should be ignored (useful in the part which randomly generates the repton positions as - given the current state of the code - the rates aren't set at the stage when it happens).