Skip to content
Snippets Groups Projects
Commit 9f95df4f authored by David Hoese's avatar David Hoese
Browse files

oops, should probably run pylint before committing

parent 3618c157
No related branches found
No related tags found
No related merge requests found
...@@ -195,7 +195,7 @@ def potentialtemp(airTempK, pressureMB): ...@@ -195,7 +195,7 @@ def potentialtemp(airTempK, pressureMB):
if airTempK == None or pressureMB == None: if airTempK == None or pressureMB == None:
return NaN return NaN
pT = airTempK * (pressure.max()/pressure)**.286 pT = airTempK * (pressureMB.max()/pressureMB)**.286
return pT return pT
...@@ -313,7 +313,7 @@ def array_convert(arr, sunits, cunits): ...@@ -313,7 +313,7 @@ def array_convert(arr, sunits, cunits):
:type cunits: string :type cunits: string
""" """
if sunits == cunits: return arr 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 shape = arr.shape
a = arr.flatten() a = arr.flatten()
if sunits == 'c': if sunits == 'c':
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment