Skip to content

Commit

Permalink
remoe trailing white space for flake8
Browse files Browse the repository at this point in the history
  • Loading branch information
dnadeau4 committed Nov 29, 2018
1 parent 6e15aa0 commit 1a2340f
Show file tree
Hide file tree
Showing 9 changed files with 31 additions and 31 deletions.
24 changes: 12 additions & 12 deletions Lib/MV2.py
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ def __init__(self, mafunc):
"""
Parameters
----------
var_unary_operation(mafunc)
mafunc is an numpy.ma masked_unary_function.
Expand All @@ -96,7 +96,7 @@ def __call__(self, a, **kwargs):

class var_unary_operation_with_axis:
def __init__(self, mafunc):
"""
"""
Parameters
----------
Expand Down Expand Up @@ -124,7 +124,7 @@ def commonDomain(a, b, omit=None):
commonDomain(a,b)
tests that the domains of variables/arrays a and b are equal,
and
and
Returns
-------
Expand All @@ -146,11 +146,11 @@ def commonDomain(a, b, omit=None):


def commonAxes(a, bdom, omit=None):
"""Helper function for commonDomain.
"""Helper function for commonDomain.
Parameters
----------
'a' is a variable or array,
'b' is an axislist or None.
Expand Down Expand Up @@ -215,7 +215,7 @@ def commonGrid(a, b, axes):
tests if the grids associated with variables a, b are equal
and consistent with the list of axes.
If so, the common grid is returned, else None is returned.
a and b can be numpy arrays, in which case the result is None.
Expand Down Expand Up @@ -272,7 +272,7 @@ def __init__(self, mafunc):
----------
var_binary_operation(mafunc)
mafunc is an numpy.ma masked_binary_function.
"""
self.mafunc = mafunc
Expand Down Expand Up @@ -1055,7 +1055,7 @@ def reshape(a, newshape, axes=None, attributes=None, id=None, grid=None):


def resize(a, new_shape, axes=None, attributes=None, id=None, grid=None):
"""resize(a, new_shape)
"""resize(a, new_shape)
Returns
-------
Expand Down Expand Up @@ -1099,7 +1099,7 @@ def masked_values(data, value, rtol=1.e-5, atol=1.e-8, copy=1,
"""
Parameters
----------
masked_values(data, value, rtol=1.e-5, atol=1.e-8)
Create a masked array; mask is None if possible.
Expand Down Expand Up @@ -1131,10 +1131,10 @@ def isMaskedVariable(x):

def set_default_fill_value(value_type, value):
"""Set the default fill value for value_type to value.
Parameters
----------
value_type is a string:
value_type is a string:
'real','complex','character','integer',or 'object'.
value should be a scalar or single-element array.
Expand Down Expand Up @@ -1164,7 +1164,7 @@ def diagonal(a, offset=0, axis1=0, axis2=1):
Returns
-------
the given diagonals defined by the two dimensions of the array.
"""
F = getattr(a, "fill_value", 1.e20)
Expand Down
2 changes: 1 addition & 1 deletion Lib/avariable.py
Original file line number Diff line number Diff line change
Expand Up @@ -711,7 +711,7 @@ def getOrder(self, ids=0):
the order string, such as t, z, y, x (time, level, lat, lon).
Note
* if ids == 0 (the default) for an axis that is not t,z,x,y
the order string will contain a (-) character in that location.
The result string will be of the same length as the number
Expand Down
2 changes: 1 addition & 1 deletion Lib/axis.py
Original file line number Diff line number Diff line change
Expand Up @@ -1255,7 +1255,7 @@ def mapInterval(self, interval, indicator='ccn', cycle=None):
Returns
-------
The corresponding index interval (i,j), where i<j, indicating
the half-open index interval [i,j), or None if the intersection is empty.
Expand Down
2 changes: 1 addition & 1 deletion Lib/cache.py
Original file line number Diff line number Diff line change
Expand Up @@ -323,7 +323,7 @@ def get(self, filekey):
def put(self, filekey, path):
"""
cache[filekey] = path
Parameters
----------
<filekey>
Expand Down
12 changes: 6 additions & 6 deletions Lib/database.py
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ def connect(uri=None, user="", password=""):
Database instance
Example
db = cdms.connect("ldap://dbhost.llnl.gov/database=CDMS,ou=PCMDI,o=LLNL,c=US")
"""
if uri is None:
Expand Down Expand Up @@ -312,7 +312,7 @@ def openDataset(self, dsetid, mode='r'):
Dataset instance.
Example
dset = db.openDataset('ncep_reanalysis_mo')
"""
dn = "dataset=%s,%s" % (dsetid, self.path)
Expand Down Expand Up @@ -416,7 +416,7 @@ def searchFilter(self, filter=None, tag=None, relbase=None,
Entries can be refined with searchPredicate().
Example
(1) Find all variables named "cli":
result = db.searchFilter(filter="id=cli",tag="variable")
Expand Down Expand Up @@ -529,7 +529,7 @@ def searchPredicate(self, predicate, tag=None):
Entries can be refined with searchPredicate().
Example
(1) Find all variables on a 73x96 grid
newresult = result.searchPredicate(lambda obj: obj.getGrid().shape==(73,96),"variable")
Expand Down Expand Up @@ -561,11 +561,11 @@ def __init__(self, db):
def getObject(self):
"""
Method
getObject()
Description
Get the CDMS object associated with this entry.
Returns
Expand Down
10 changes: 5 additions & 5 deletions Lib/forecast.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ def two_times_from_one(t):
cdscan script, or a string in the format "2010-08-25 15:26:00", or
as a cdtime comptime (component time) object.
Output
Output
is the same time, both as a long _and_ as a comptime.
"""
if t == 0:
Expand Down Expand Up @@ -139,7 +139,7 @@ def available_forecasts(dataset_file, path="."):
through the specified cdscan-generated dataset xml file.
Note
The forecasts are given in 64-bit integer format, but can be converted
to component times with the function two_times_from_one.
This function may help in choosing the right arguments for initializing
Expand All @@ -157,7 +157,7 @@ class forecasts():
Represents a set of forecasts
Example
Creates a set of forecasts. Normally you do it by something like
f = forecasts( 'file.xml', (min_time, max_time) )
Expand Down Expand Up @@ -256,7 +256,7 @@ def time_interval_to_list(self, tlo, thi, openclosed='co'):
def reduce_inplace(self, min_time, max_time, openclosed='co'):
"""
Example
For a forecasts object f, f( min_time, max_time ) will reduce the
scope of f, to forecasts whose start time t has min_time<=t<max_time.
Expand Down Expand Up @@ -366,7 +366,7 @@ def forecast_axis(self, varname, fcss=None):
a tuple (axis,start,length,true_length) where axis is in the forecast direction.
Note
If a list of forecasts be specified, the axis' data will be limited to them."""
if fcss is None:
fcss = self.fcs
Expand Down
2 changes: 1 addition & 1 deletion Lib/hgrid.py
Original file line number Diff line number Diff line change
Expand Up @@ -204,7 +204,7 @@ def fixCutCells(self, nonConvexCells, threshold=270.0):
Returns
-------
value is a 1D array of indices of cells that cannot be repaired.
"""

Expand Down
6 changes: 3 additions & 3 deletions Lib/tvariable.py
Original file line number Diff line number Diff line change
Expand Up @@ -582,8 +582,8 @@ def clone(self, copyData=1):
Returns
-------
a copy of self as a transient variable.
a copy of self as a transient variable.
If copyData is 1 (default), make a separate copy of the data."""
result = createVariable(self, copy=copyData)
return result
Expand Down Expand Up @@ -933,7 +933,7 @@ def asVariable(s, writeable=1):
"""
Returns
-------
s if s is a Variable; if writeable is 1,
s if s is a Variable; if writeable is 1,
return s if s is a TransientVariable.
If s is not a variable of
Expand Down
2 changes: 1 addition & 1 deletion regrid2/Lib/crossSection.py
Original file line number Diff line number Diff line change
Expand Up @@ -546,7 +546,7 @@ def checkdimension(x, name):
"""
Purpose:
dimension checks
1. has a len method
2. data type is float32
Expand Down

0 comments on commit 1a2340f

Please sign in to comment.