From 2edab215b60b37043ed3bfe5199a3cbc3eeb1e42 Mon Sep 17 00:00:00 2001 From: Daniel Brown <ddb@star.sr.bham.ac.uk> Date: Tue, 19 Apr 2016 13:16:02 -0700 Subject: [PATCH] Forcing string conversion for exception checking in SIFloat, should get rid of unicode warnings --- pykat/SIfloat.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pykat/SIfloat.py b/pykat/SIfloat.py index d6e16ab..91356b5 100644 --- a/pykat/SIfloat.py +++ b/pykat/SIfloat.py @@ -31,7 +31,7 @@ def SIfloat(value): if value is None: return value - if value in __exceptions: + if str(value) in __exceptions: return value value = np.array(value) -- GitLab