Skip to content

Commit

Permalink
Rename function collecting filenames
Browse files Browse the repository at this point in the history
  • Loading branch information
pnuu committed May 21, 2021
1 parent 6d9c286 commit 3debf10
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions pyorbital/tlefile.py
Original file line number Diff line number Diff line change
Expand Up @@ -397,7 +397,7 @@ def read_tle_files(self):
paths = self.config["downloaders"]["read_tle_files"]["paths"]

# Collect filenames
fnames = collect_fnames(paths)
fnames = collect_filenames(paths)
tles = _parse_tles_for_downloader(fnames, open)
logging.info("Loaded %d TLEs from local files", len(tles))

Expand All @@ -417,7 +417,7 @@ def _parse_tles_for_downloader(item, open_func):
_get_tles_from_uris(item, open_func, platform='', only_first=False)]


def collect_fnames(paths):
def collect_filenames(paths):
"""Collect all filenames from *paths*."""
fnames = []
for path in paths:
Expand All @@ -433,7 +433,7 @@ def collect_fnames(paths):

def read_tles_from_mmam_xml_files(paths):
# Collect filenames
fnames = collect_fnames(paths)
fnames = collect_filenames(paths)
tles = []
for fname in fnames:
data = read_tle_from_mmam_xml_file(fname).split('\n')
Expand Down

0 comments on commit 3debf10

Please sign in to comment.