From 140b458dbb6b2565c32177425d54ef5566d7edd2 Mon Sep 17 00:00:00 2001 From: Guruprasad Anada Date: Thu, 10 Sep 2009 17:35:21 -0400 Subject: [PATCH] Bug fix for 'Fetch closest feature' tool. --- tools/new_operations/flanking_features.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/new_operations/flanking_features.py b/tools/new_operations/flanking_features.py index 37d577465a0..2ef0d77f59f 100644 --- a/tools/new_operations/flanking_features.py +++ b/tools/new_operations/flanking_features.py @@ -129,7 +129,7 @@ def proximal_region_finder(readers, region, comments=True): map(outfields.append, result_down[-1].other) #The last element of result_down will be the closest element to the given interval elif result_up: map(outfields.append, result_up[res_ind].other) - else: + elif result_down: map(outfields.append, result_down[-1].other) #The last element of result_down will be the closest element to the given interval yield outfields