Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/ep_sampler_randomwalk.py
diff options
context:
space:
mode:
authorThomas Jourdan <b.vehikel@googlemail.com>2010-02-22 21:08:31 (GMT)
committer Thomas Jourdan <b.vehikel@googlemail.com>2010-02-22 21:08:31 (GMT)
commit267e69b6ca86aa040921f04a0fecdc1f2de52148 (patch)
treec0922f1623178eedbcf947aabd62464035cf38cb /ep_sampler_randomwalk.py
parente899cc8750b1368eb57d91ca7ded96cb88b1de19 (diff)
Bug fixing samplers / rendering engine. The changes in the rendering are not backwards compatible.
Diffstat (limited to 'ep_sampler_randomwalk.py')
-rw-r--r--ep_sampler_randomwalk.py9
1 files changed, 6 insertions, 3 deletions
diff --git a/ep_sampler_randomwalk.py b/ep_sampler_randomwalk.py
index 7951928..db9e2d6 100644
--- a/ep_sampler_randomwalk.py
+++ b/ep_sampler_randomwalk.py
@@ -15,6 +15,7 @@
# along with this program; if not, write to the Free Software
# Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
+import ka_utils
import math
import ka_debug
import model_random
@@ -27,7 +28,7 @@ from gettext import gettext as _
SECTIONS_CONSTRAINT = 'sectionsconstraint'
class RandomWalkSampler(model_allele.Allele):
- """RandomWalkSampler: Reverse the layer horizontally or vertically.
+ """RandomWalkSampler:
inv: len(self.direction_steps) > 0
"""
@@ -115,8 +116,10 @@ class RandomWalkSampler(model_allele.Allele):
"""
post: len(__return__) == 3
"""
- return _('Random walk sampler: %d points') \
- % (len(self.direction_steps)), \
+ head = _('Random walk sampler: %d points') \
+ % (len(self.direction_steps))
+ description = ka_utils.explain_points(head, self.get_sample_points())
+ return description, \
None, \
None