From 9f95df4fbef653a27346acdebf9fca1c26d4f077 Mon Sep 17 00:00:00 2001 From: David Hoese <davidh@ssec.wisc.edu> Date: Fri, 17 Aug 2012 14:51:52 +0000 Subject: [PATCH] oops, should probably run pylint before committing --- metobs/data/__init__.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/metobs/data/__init__.py b/metobs/data/__init__.py index 6b93d1e..bf8a2f4 100644 --- a/metobs/data/__init__.py +++ b/metobs/data/__init__.py @@ -195,7 +195,7 @@ def potentialtemp(airTempK, pressureMB): if airTempK == None or pressureMB == None: return NaN - pT = airTempK * (pressure.max()/pressure)**.286 + pT = airTempK * (pressureMB.max()/pressureMB)**.286 return pT @@ -313,7 +313,7 @@ def array_convert(arr, sunits, cunits): :type cunits: string """ if sunits == cunits: return arr - if not isinstance(arr, ndarray):: raise ValueError("Array must be of type numpy.ndarray, not %r" % (type(arr),)) + if not isinstance(arr, ndarray): raise ValueError("Array must be of type numpy.ndarray, not %r" % (type(arr),)) shape = arr.shape a = arr.flatten() if sunits == 'c': -- GitLab