From e509675737c2bc68a8b83ea46efb8574e26ff265 Mon Sep 17 00:00:00 2001 From: Steven Robertson Date: Thu, 31 May 2012 22:15:51 -0700 Subject: [PATCH] Fix a blend bug (flipped finals in some cases) --- cuburn/genome/blend.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cuburn/genome/blend.py b/cuburn/genome/blend.py index d40b547..dc40fac 100644 --- a/cuburn/genome/blend.py +++ b/cuburn/genome/blend.py @@ -229,7 +229,7 @@ def padding_xform(xf, isfinal): xout['post_affine'] = {'angle': 135, 'spread': 135} for k in xf.get('variations', {}): - if k in hole_variations: + if k in hole_variations and not isfinal: # Attempt to correct for some known-ugly variations. xout['pre_affine']['angle'] += 180 vars['linear'] = dict(weight=-1)