Skip to content
This repository has been archived by the owner on Feb 26, 2020. It is now read-only.

Commit

Permalink
Bugfix: get_area_def_names is now returning the correct amount of areas.
Browse files Browse the repository at this point in the history
Signed-off-by: Martin Raspaud <martin.raspaud@smhi.se>
  • Loading branch information
mraspaud committed May 8, 2015
1 parent 2f945f7 commit d7d0e29
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion trollduction/producer.py
Original file line number Diff line number Diff line change
Expand Up @@ -485,6 +485,7 @@ def run(self, product_config, msg):
for group in self.product_config.groups:
LOGGER.debug("processing %s", group.info['id'])
area_def_names = self.get_area_def_names(group.data)
LOGGER.debug("areas: %s", str(area_def_names))
products = []
skip = []
skip_group = True
Expand Down Expand Up @@ -615,7 +616,7 @@ def get_area_def_names(self, group=None):
pl = group or self.product_config.pl

def_names = [item.attrib["id"]
for item in self.product_config.pl
for item in pl
if item.tag == "area"]

return def_names
Expand Down

0 comments on commit d7d0e29

Please sign in to comment.