From cfcce5c199d45f0dbdb21bab029b9b44e69380f9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andreas=20Kusalananda=20K=C3=A4h=C3=A4ri?= <ak4@sanger.ac.uk> Date: Tue, 12 Jun 2012 13:29:38 +0000 Subject: [PATCH] Floating point comparison == 1 changed to > 0.9999. --- modules/Bio/EnsEMBL/IdMapping/StableIdMapper.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/Bio/EnsEMBL/IdMapping/StableIdMapper.pm b/modules/Bio/EnsEMBL/IdMapping/StableIdMapper.pm index e9972385b7..c437eae07d 100644 --- a/modules/Bio/EnsEMBL/IdMapping/StableIdMapper.pm +++ b/modules/Bio/EnsEMBL/IdMapping/StableIdMapper.pm @@ -239,7 +239,7 @@ sub map_stable_ids { # Only add events when something changed. if ( !( $s_obj->stable_id eq $t_obj->stable_id && $s_obj->version == $t_obj->version && - $scores_by_target{$tid} == 1 ) ) + $scores_by_target{$tid} > 0.9999 ) ) { my $key = join( "\t", $s_obj->stable_id, $s_obj->version, -- GitLab