Skip to content

Commit

Permalink
[pre-commit.ci] auto fixes from pre-commit.com hooks
Browse files Browse the repository at this point in the history
for more information, see https://pre-commit.ci
  • Loading branch information
pre-commit-ci[bot] committed Aug 9, 2021
1 parent 657f96a commit f73d197
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions echopype/echodata/echodata.py
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,7 @@ def _load_file(self, raw_path):
setattr(self, group, ds)

def _check_path(self, filepath):
""" Check if converted_raw_path exists """
"""Check if converted_raw_path exists"""
file_exists = check_file_existance(filepath, self.storage_options)
if not file_exists:
raise FileNotFoundError(f"There is no file named {filepath}")
Expand All @@ -152,7 +152,7 @@ def _sanitize_path(self, filepath):
return filepath

def _check_suffix(self, filepath):
""" Check if file type is supported. """
"""Check if file type is supported."""
# TODO: handle multiple files through the same set of checks for combining files
if isinstance(filepath, fsspec.FSMap):
suffix = Path(filepath.root).suffix
Expand All @@ -165,7 +165,7 @@ def _check_suffix(self, filepath):
return suffix

def _load_group(self, filepath, group=None):
""" Loads each echodata group """
"""Loads each echodata group"""
suffix = self._check_suffix(filepath)
return xr.open_dataset(filepath, group=group, engine=XARRAY_ENGINE_MAP[suffix])

Expand Down

0 comments on commit f73d197

Please sign in to comment.