Skip to content

Commit

Permalink
nc_pps_l2: don't crash on multiple files, just go through them one at…
Browse files Browse the repository at this point in the history
… the time.

Signed-off-by: Martin Raspaud <martin.raspaud@smhi.se>
  • Loading branch information
mraspaud committed Nov 17, 2014
1 parent e2e544b commit cade921
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion mpop/satin/nc_pps_l2.py
Original file line number Diff line number Diff line change
Expand Up @@ -278,7 +278,11 @@ def load(self, satscene, *args, **kwargs):
for product in products:
LOG.debug("Loading " + product)

if (prodfilename and
if isinstance(prodfilename, (list, tuple, set)):
for fname in prodfilename:
kwargs['filename'] = fname
self.load(satscene, *args, **kwargs)
elif (prodfilename and
os.path.basename(prodfilename).split("_")[2] == NEW_PRODNAMES[product]):
filename = prodfilename
else:
Expand Down

0 comments on commit cade921

Please sign in to comment.