From 5b8bc65d37a60238927c0d5b1a03730a9c950565 Mon Sep 17 00:00:00 2001 From: Philip Eisenlohr Date: Mon, 28 Aug 2017 19:32:59 -0400 Subject: [PATCH] exchanged string 'n/a' for 'nan' to allow smooth parsing as float value --- processing/post/postResults.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/processing/post/postResults.py b/processing/post/postResults.py index 23550e980..7cac229e4 100755 --- a/processing/post/postResults.py +++ b/processing/post/postResults.py @@ -431,7 +431,7 @@ def mapIncremental(label, mapping, N, base, new): 'avgabs': lambda n,b,a: (n*b+abs(a))/(n+1), 'sum': lambda n,b,a: a if n==0 else b+a, 'sumabs': lambda n,b,a: abs(a) if n==0 else b+abs(a), - 'unique': lambda n,b,a: a if n==0 or b==a else 'n/a' + 'unique': lambda n,b,a: a if n==0 or b==a else 'nan' } if mapping in theMap: mapped = map(theMap[mapping],[N]*len(base),base,new) # map one of the standard functions to data @@ -442,7 +442,7 @@ def mapIncremental(label, mapping, N, base, new): try: mapped = eval('map(%s,[N]*len(base),base,new)'%mapping) # map user defined function to colums in chunks except: - mapped = ['n/a']*len(base) + mapped = ['nan']*len(base) return mapped