Skip to content

Commit

Permalink
Bugfix
Browse files Browse the repository at this point in the history
Signed-off-by: Adam Dybbroe <adam.dybbroe@smhi.se>
  • Loading branch information
adybbroe committed Jan 7, 2015
1 parent e280013 commit 5bc26ab
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions mpop/scene.py
Original file line number Diff line number Diff line change
Expand Up @@ -185,7 +185,7 @@ class SatelliteInstrumentScene(SatelliteScene):
container, from which all concrete satellite scenes should be derived.
The constructor accepts as optional arguments the *time_slot* of the scene,
the *area* on which the scene is defined (this can be use for slicing of
the *area* on which the scene is defined (this can be used for slicing of
big datasets, or can be set automatically when loading), and *orbit* which
is a string giving the orbit number.
"""
Expand Down Expand Up @@ -665,7 +665,7 @@ def project(self, dest_area, channels=None, precompute=False, mode=None,
if hasattr(chn.area, "area_id") and not chn.area.area_id:
LOG.debug("chn.area has area_id attribute...")
chn.area.area_id = area_name
elif not hasattr(chn.area, "area_id"):
elif not hasattr(chn.area, "area_id") and not isinstance(chn.area, str):
setattr(chn.area, 'area_id', area_name)

if isinstance(chn.area, str):
Expand Down

0 comments on commit 5bc26ab

Please sign in to comment.