Skip to content

Commit

Permalink
split up some long lines
Browse files Browse the repository at this point in the history
  • Loading branch information
timleslie committed Mar 15, 2006
1 parent dec9d9c commit b678b2a
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions Lib/interpolate/interpolate.py
Expand Up @@ -115,7 +115,8 @@ def __init__(self,x,y,kind='linear',axis = -1,
self.fill_value = fill_value

if kind != 'linear':
raise NotImplementedError, "Only linear supported for now. Use fitpack routines for other types."
raise NotImplementedError, "Only linear supported for now. Use "\
"fitpack routines for other types."

# Check that both x and y are at least 1 dimensional.
if len(shape(x)) == 0 or len(shape(y)) == 0:
Expand All @@ -125,7 +126,8 @@ def __init__(self,x,y,kind='linear',axis = -1,
oriented_x = x
oriented_y = swapaxes(y,self.interp_axis,axis)
interp_axis = self.interp_axis
len_x,len_y = shape(oriented_x)[interp_axis], shape(oriented_y)[interp_axis]
len_x = shape(oriented_x)[interp_axis]
len_y = shape(oriented_y)[interp_axis]
if len_x != len_y:
raise ValueError, "x and y arrays must be equal in length along "\
"interpolation axis."
Expand Down

0 comments on commit b678b2a

Please sign in to comment.