From 45d2127fb3c41283bbd8020dc3b9c9627e622de0 Mon Sep 17 00:00:00 2001 From: "y.hoogstrate@erasmusmc.nl" Date: Thu, 7 Apr 2016 08:24:00 +0200 Subject: [PATCH] Suppresses a warning for certain installations --- Changelog | 4 ++++ fuma/ComparisonTriangle.py | 2 +- fuma/__init__.py | 2 +- 3 files changed, 6 insertions(+), 2 deletions(-) diff --git a/Changelog b/Changelog index c3923a3..19daa5c 100644 --- a/Changelog +++ b/Changelog @@ -1,3 +1,7 @@ +2016-04-07 Youri Hoogstrate + + * Version 3.0.2: Suppresses a warning that occurs in some installations + 2016-04-05 Youri Hoogstrate * Version 3.0.1: Added a simple break statement ensures that the output is diff --git a/fuma/ComparisonTriangle.py b/fuma/ComparisonTriangle.py index b7586bf..279999b 100644 --- a/fuma/ComparisonTriangle.py +++ b/fuma/ComparisonTriangle.py @@ -213,7 +213,7 @@ def export_list_header(self): def export_list_chunked(self,fh,chunk_fusions): for fusion in chunk_fusions: - if fusion != None: + if fusion not in [None, False]:# False means marked as duplicate earlier on self.export_list_fg(fusion,fh) if not isinstance(fusion, Fusion): diff --git a/fuma/__init__.py b/fuma/__init__.py index 13211a6..c11b14d 100644 --- a/fuma/__init__.py +++ b/fuma/__init__.py @@ -21,7 +21,7 @@ """ -__version_info__ = ('3', '0', '1') +__version_info__ = ('3', '0', '2') __version__ = '.'.join(__version_info__) if (len(__version_info__) == 3) else '.'.join(__version_info__[0:3])+"-"+__version_info__[3] __author__ = 'Youri Hoogstrate' __homepage__ = 'https://github.com/yhoogstrate/fuma'