Convert "NaN" -> "nan" to catch up with Numpy 1.6
[hooke.git] / test / polymer_fit.py
index 7277ae701f89fd18f6f31dcb6f2183aeb3e82615..67128c74f0f3eb183f84591d6391247aaca4d439 100644 (file)
@@ -1,20 +1,19 @@
-# Copyright (C) 2010-2011 W. Trevor King <wking@drexel.edu>
+# Copyright (C) 2010-2012 W. Trevor King <wking@tremily.us>
 #
 # This file is part of Hooke.
 #
-# Hooke is free software: you can redistribute it and/or modify it
-# under the terms of the GNU Lesser General Public License as
-# published by the Free Software Foundation, either version 3 of the
-# License, or (at your option) any later version.
+# Hooke is free software: you can redistribute it and/or modify it under the
+# terms of the GNU Lesser General Public License as published by the Free
+# Software Foundation, either version 3 of the License, or (at your option) any
+# later version.
 #
-# Hooke is distributed in the hope that it will be useful, but WITHOUT
-# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
-# or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU Lesser General
-# Public License for more details.
+# Hooke is distributed in the hope that it will be useful, but WITHOUT ANY
+# WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR
+# A PARTICULAR PURPOSE.  See the GNU Lesser General Public License for more
+# details.
 #
-# You should have received a copy of the GNU Lesser General Public
-# License along with Hooke.  If not, see
-# <http://www.gnu.org/licenses/>.
+# You should have received a copy of the GNU Lesser General Public License
+# along with Hooke.  If not, see <http://www.gnu.org/licenses/>.
 
 """
 >>> from hooke.hooke import Hooke, HookeRunner
@@ -78,22 +77,22 @@ Check the results.
  'polymer peak 0 (N)', 'polymer peak 1 (N)', 'polymer peak 2 (N)',
  'polymer peak 3 (N)', 'polymer peak 4 (N)', 'polymer peak 5 (N)']
 >>> retract[:5,-2:]
-Data([[ NaN,  NaN],
-       [ NaN,  NaN],
-       [ NaN,  NaN],
-       [ NaN,  NaN],
-       [ NaN,  NaN]])
+Data([[ nan,  nan],
+       [ nan,  nan],
+       [ nan,  nan],
+       [ nan,  nan],
+       [ nan,  nan]])
 >>> retract[1097:1103,-2:]  # doctest: +ELLIPSIS
-Data([[             NaN,   5.2...e-10],
-       [             NaN,   5...e-10],
-       [             NaN,   6.1...e-10],
-       [             NaN,   6.2...e-10],
-       [             NaN,   7...e-10],
-       [             NaN,              NaN]])
+Data([[             nan,   5.2...e-10],
+       [             nan,   5...e-10],
+       [             nan,   6.1...e-10],
+       [             nan,   6.2...e-10],
+       [             nan,   7...e-10],
+       [             nan,              nan]])
 >>> retract[-5:,-2:]
-Data([[ NaN,  NaN],
-       [ NaN,  NaN],
-       [ NaN,  NaN],
-       [ NaN,  NaN],
-       [ NaN,  NaN]])
+Data([[ nan,  nan],
+       [ nan,  nan],
+       [ nan,  nan],
+       [ nan,  nan],
+       [ nan,  nan]])
 """