Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
tkknight committed Nov 13, 2023
1 parent 315ce09 commit 126496a
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 7 deletions.
2 changes: 1 addition & 1 deletion lib/iris/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ def get_logger(
Returns
-------
A :class:`logging.Logger`.
:class:`logging.Logger`.
"""
if level is None:
Expand Down
3 changes: 2 additions & 1 deletion lib/iris/fileformats/netcdf/_thread_safe_nc.py
Original file line number Diff line number Diff line change
Expand Up @@ -342,7 +342,8 @@ def __init__(self, shape, dtype, path, variable_name, fill_value):
self.fill_value = fill_value

@property
def ndim(self): # noqa: D102
def ndim(self):
# noqa: D102
return len(self.shape)

def __getitem__(self, keys):
Expand Down
12 changes: 7 additions & 5 deletions lib/iris/io/format_picker.py
Original file line number Diff line number Diff line change
Expand Up @@ -180,7 +180,7 @@ def __init__(
Parameters
----------
format_name
format_name: str
string name of fileformat being described
file_element
FileElement instance of the element which identifies this
Expand All @@ -192,7 +192,7 @@ def __init__(
function which will be called when the specification has been
identified and is required to handler a format. If None, then the
file can still be identified but no handling can be done.
priority
priority: int
Integer giving a priority for considering this specification where
higher priority means sooner consideration.
Expand Down Expand Up @@ -286,7 +286,7 @@ def __init__(self, requires_fh=True):
Parameters
----------
requires_fh
requires_fh: optional
Whether this FileElement needs a file buffer.
"""
Expand Down Expand Up @@ -340,7 +340,8 @@ def get_element(self, basename, file_handle):
class LeadingLine(FileElement):
"""A :class:`FileElement` that returns the first line from the file."""

def get_element(self, basename, file_handle): # noqa: D102
def get_element(self, basename, file_handle):
# noqa: D102
return file_handle.readline()


Expand All @@ -356,7 +357,8 @@ class UriProtocol(FileElement):
def __init__(self):
FileElement.__init__(self, requires_fh=False)

def get_element(self, basename, file_handle): # noqa: D102
def get_element(self, basename, file_handle):
# noqa: D102
from iris.io import decode_uri

return decode_uri(basename)[0]
Expand Down

0 comments on commit 126496a

Please sign in to comment.