Skip to content

Commit

Permalink
flake8 files
Browse files Browse the repository at this point in the history
  • Loading branch information
dnadeau4 committed Apr 8, 2019
1 parent c622cb2 commit a612165
Show file tree
Hide file tree
Showing 17 changed files with 125 additions and 125 deletions.
12 changes: 6 additions & 6 deletions Lib/MV2.py
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ def __init__(self, mafunc):
"""
Parameters
----------
var_unary_operation(mafunc)
mafunc is an numpy.ma masked_unary_function.
Expand Down Expand Up @@ -273,7 +273,7 @@ def __init__(self, mafunc):
----------
var_binary_operation(mafunc)
mafunc is an numpy.ma masked_binary_function.
"""
self.mafunc = mafunc
Expand Down Expand Up @@ -939,9 +939,9 @@ def outer(self, a, b):

def asarray(data, typecode=None, dtype=None):
"""
asarray(data, typecode=None, dtype=None) is equivalent to array(data, dtype=None, copy=0)
Assarray
Returns
Expand Down Expand Up @@ -1109,7 +1109,7 @@ def masked_array(a, mask=None, fill_value=None,
def masked_values(data, value, rtol=1.e-5, atol=1.e-8, copy=1,
savespace=0, axes=None, attributes=None, id=None):
"""
Masked Values
Masked Values
Parameters
----------
Expand Down Expand Up @@ -1169,7 +1169,7 @@ def fromfunction(f, dimensions):

def diagonal(a, offset=0, axis1=0, axis2=1):
"""
Diagonal
Diagonal
Parameters
----------
Expand Down
15 changes: 7 additions & 8 deletions Lib/avariable.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@
from . import selectors
import copy
from .mvCdmsRegrid import CdmsRegrid, getBoundList, _getCoordList

from regrid2.mvGenericRegrid import guessPeriodicity
# import PropertiedClasses
from .convention import CF1
Expand Down Expand Up @@ -421,7 +420,7 @@ def getAxis(self, n):
Returns
-------
if n < 0: n = n + self.rank()
if n < 0: n = n + self.rank()
self.getDomain()[n][0]"""
if n < 0:
n = n + self.rank()
Expand Down Expand Up @@ -826,9 +825,9 @@ def getSlice(self, *specs, **keys):
isitem : if given, result is return as a scaler for 0-D data
Notes
There can be zero or more positional arguments, each of the form:
#. a single integer n, meaning slice(n, n+1)
#. an instance of the slice class
#. a tuple, which will be used as arguments to create a slice
Expand Down Expand Up @@ -885,7 +884,7 @@ def getRegion(self, *specs, **keys):
None, colon : Represents the full range of one dimension.
Notes
Only one dimension may be wrapped.
Expand All @@ -895,7 +894,7 @@ def getRegion(self, *specs, **keys):
>>> getRegion((10, 20), 850, Ellipsis,(-180, 180))
retrieves :
retrieves :
* all times t such that 10.<=t<20.
* level 850.
* all values of all dimensions between level and lon (namely, lat).
Expand Down Expand Up @@ -1187,7 +1186,7 @@ def regrid(self, togrid, missing=None, order=None, mask=None, **keywords):
One can use the regrid2.Regridder optional arguments as well.
Example
>>> new_cdmsVar = cdmsVar.regrid(newGrid) # uses libcf
>>> new_cdmsVar = cdmsVar.regrid(newGrid, regridMethod = 'conserve', coordSys = 'cart')
Expand Down Expand Up @@ -1668,7 +1667,7 @@ def decode(self, ar):
def getGridIndices(self):
"""
Get Grid Indices
Returns
-------
a tuple of indices corresponding to the variable grid."""
Expand Down
4 changes: 2 additions & 2 deletions Lib/axis.py
Original file line number Diff line number Diff line change
Expand Up @@ -671,7 +671,7 @@ def isOverlapVector(vec1, vec2, atol=1.e-8):
----------
vec1 : Input arrays to compare
vec2 : Input arrays to compare
atol : float, optional
atol : float, optional
Absolute tolerance, The absolute differenc is equal to **atol** Default is 1e-8
Returns
Expand Down Expand Up @@ -2620,7 +2620,7 @@ def axisMatches(axis, specification):
1 or 0 depending on whether axis matches the specification.
Notes
Specification must be one of:
#. a string representing an axis id or one of the keywords time,
Expand Down
8 changes: 4 additions & 4 deletions Lib/cache.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ def lock(filename):
Acquire a file-based lock with the given name.
Usage :
lock(filename)
If the function returns, the lock was acquired successfully.
Expand Down Expand Up @@ -135,7 +135,7 @@ def lockpath(filename):

def useWindow():
"""
Specify that dialog windows should be used if possible.
Specify that dialog windows should be used if possible.
Do not call this directly, use gui.setProgressParent instead.
Expand Down Expand Up @@ -434,7 +434,7 @@ def getFile(self, fromURL, filekey, naptime=5, maxtries=60,
<filekey> : is the cache index key. A good choice is (datasetDN, filename) where
datasetDN : is the distinguished name of the dataset, and filename is the name of the file
datasetDN : is the distinguished name of the dataset, and filename is the name of the file
within the dataset.
For request manager transfers,
Expand All @@ -443,7 +443,7 @@ def getFile(self, fromURL, filekey, naptime=5, maxtries=60,
<userid> : is the user string ID,
<useReplica> : is true iff the request manager should search the replica catalog
<useReplica> : is true iff the request manager should search the replica catalog
for the actual file to transfer.
Returns
Expand Down
8 changes: 4 additions & 4 deletions Lib/cudsinterface.py
Original file line number Diff line number Diff line change
Expand Up @@ -156,7 +156,7 @@ def listglobal(self):
-------
a list of the global attributes in the file.
"""
return list(self.attributes.keys())

Expand Down Expand Up @@ -256,9 +256,9 @@ def showall(self, vname=None, all=None, device=None):
Options
vname : (str/None) (None) variable name
all : (None/True/False/int) (None) include axes information
device : (None/file) (None) output device
"""
Expand Down Expand Up @@ -389,7 +389,7 @@ def getslab(self, vname, *args, **keys):
for any given dimension or cdms selector
Keys
squeeze : (int/True/False) (0) squeezes (removes) dimensions of length 1
order : (str) ('...') reorder the dimensions, can use numbers or xyzt or dim names in between paranthesis
Expand Down
Loading

0 comments on commit a612165

Please sign in to comment.