projects
/
hooke.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Convert "NaN" -> "nan" to catch up with Numpy 1.6
[hooke.git]
/
hooke
/
util
/
si.py
diff --git
a/hooke/util/si.py
b/hooke/util/si.py
index 9d6e91068e1a91cac40d49a4b1790f6a111f7163..67366c135eb094eb51550949aaa2c349b0fb791c 100644
(file)
--- a/
hooke/util/si.py
+++ b/
hooke/util/si.py
@@
-109,7
+109,7
@@
def ppSI(value, unit='', decimals=None, power=None, pad=False):
if value == 0:
return '0'
if value == None or isnan(value):
- return '
NaN
'
+ return '
nan
'
if power == None: # auto-detect power
power = get_power(value)