[Git][debian-gis-team/satpy][master] 4 commits: Depend on pyninjotiff

Antonio Valentino gitlab at salsa.debian.org
Mon Dec 31 17:54:17 GMT 2018


Antonio Valentino pushed to branch master at Debian GIS Project / satpy


Commits:
e612e2aa by Antonio Valentino at 2018-12-31T17:46:56Z
Depend on pyninjotiff

- - - - -
aa57fd2a by Antonio Valentino at 2018-12-31T17:47:33Z
New upstream version 0.11.1
- - - - -
02fff5a5 by Antonio Valentino at 2018-12-31T17:47:35Z
Update upstream source from tag 'upstream/0.11.1'

Update to upstream version '0.11.1'
with Debian dir 7c488ab1acab913331384525171f6a1065ae15e0
- - - - -
069fb3be by Antonio Valentino at 2018-12-31T17:50:53Z
New upstream release

- - - - -


7 changed files:

- CHANGELOG.md
- debian/changelog
- debian/control
- satpy/composites/__init__.py
- satpy/scene.py
- satpy/tests/compositor_tests/__init__.py
- satpy/version.py


Changes:

=====================================
CHANGELOG.md
=====================================
@@ -1,3 +1,14 @@
+## Version 0.11.1 (2018/12/27)
+
+### Pull Requests Merged
+
+#### Bugs fixed
+
+* [PR 560](https://github.com/pytroll/satpy/pull/560) - Fix available_composite_ids including inline comp dependencies
+
+In this release 1 pull request was closed.
+
+
 ## Version 0.11.0 (2018/12/21)
 
 ### Issues Closed


=====================================
debian/changelog
=====================================
@@ -1,5 +1,5 @@
-satpy (0.11.0-1) unstable; urgency=medium
+satpy (0.11.1-1) UNRELEASED; urgency=medium
 
   * Initial version (Closes: #917110)
 
- -- Antonio Valentino <antonio.valentino at tiscali.it>  Sun, 23 Dec 2018 16:55:41 +0000
+ -- Antonio Valentino <antonio.valentino at tiscali.it>  Mon, 31 Dec 2018 17:50:07 +0000


=====================================
debian/control
=====================================
@@ -25,6 +25,7 @@ Build-Depends: debhelper (>= 11),
                python3-pycoast,
                python3-pydecorate,
                python3-pykdtree,
+               python3-pyninjotiff,
                python3-pyorbital (>= 1.3.1),
                python3-pyproj,
                python3-pyresample (>= 1.10.3),
@@ -79,6 +80,7 @@ Recommends: python3-behave,
             python3-pydecorate,
             python3-pycoast,
             python3-pygac,
+            python3-pyninjotiff,
             python3-pyorbital (>= 1.3.1),
             python3-pyspectral,
             python3-rasterio,


=====================================
satpy/composites/__init__.py
=====================================
@@ -148,7 +148,7 @@ class CompositorLoader(object):
                     # Handle in-line composites
                     if 'compositor' in item:
                         # Create an unique temporary name for the composite
-                        sub_comp_name = composite_name + '_dep_{}'.format(dep_num)
+                        sub_comp_name = '_' + composite_name + '_dep_{}'.format(dep_num)
                         dep_num += 1
                         # Minimal composite config
                         sub_conf = {composite_type: {sub_comp_name: item}}


=====================================
satpy/scene.py
=====================================
@@ -341,10 +341,9 @@ class Scene(MetadataObject):
             reader_name=reader_name, composites=composites)))
 
     def available_composite_ids(self, available_datasets=None):
-        """Get names of compositors that can be generated from the available
-        datasets.
+        """Get names of compositors that can be generated from the available datasets.
 
-        :return: generator of available compositor's names
+        Returns: generator of available compositor's names
         """
         if available_datasets is None:
             available_datasets = self.available_dataset_ids(composites=False)
@@ -364,13 +363,14 @@ class Scene(MetadataObject):
         return sorted(available_comps & set(all_comps))
 
     def available_composite_names(self, available_datasets=None):
+        """All configured composites known to this Scene."""
         return sorted(set(x.name for x in self.available_composite_ids(
             available_datasets=available_datasets)))
 
     def all_composite_ids(self, sensor_names=None):
         """Get all composite IDs that are configured.
 
-        :return: generator of configured composite names
+        Returns: generator of configured composite names
         """
         if sensor_names is None:
             sensor_names = self.attrs['sensor']
@@ -378,8 +378,9 @@ class Scene(MetadataObject):
         # Note if we get compositors from the dep tree then it will include
         # modified composites which we don't want
         for sensor_name in sensor_names:
-            compositors.extend(
-                self.cpl.compositors.get(sensor_name, {}).keys())
+            sensor_comps = self.cpl.compositors.get(sensor_name, {}).keys()
+            # ignore inline compositor dependencies starting with '_'
+            compositors.extend(c for c in sensor_comps if not c.name.startswith('_'))
         return sorted(set(compositors))
 
     def all_composite_names(self, sensor_names=None):


=====================================
satpy/tests/compositor_tests/__init__.py
=====================================
@@ -472,8 +472,8 @@ class TestInlineComposites(unittest.TestCase):
         # Check that "fog" product has all its prerequisites defined
         keys = comps['visir'].keys()
         fog = [comps['visir'][dsid] for dsid in keys if "fog" == dsid.name][0]
-        self.assertEqual(fog.attrs['prerequisites'][0], 'fog_dep_0')
-        self.assertEqual(fog.attrs['prerequisites'][1], 'fog_dep_1')
+        self.assertEqual(fog.attrs['prerequisites'][0], '_fog_dep_0')
+        self.assertEqual(fog.attrs['prerequisites'][1], '_fog_dep_1')
         self.assertEqual(fog.attrs['prerequisites'][2], 10.8)
 
         # Check that the sub-composite dependencies use wavelengths


=====================================
satpy/version.py
=====================================
@@ -23,9 +23,9 @@ def get_keywords():
     # setup.py/versioneer.py will grep for the variable names, so they must
     # each be defined on a line of their own. _version.py will just call
     # get_keywords().
-    git_refnames = " (HEAD -> master, tag: v0.11.0)"
-    git_full = "2bfaf5ac8419adaff98bc707b9be9b9aae4dfd98"
-    git_date = "2018-12-21 09:01:39 -0600"
+    git_refnames = " (tag: v0.11.1)"
+    git_full = "621606d6a8f4b0506207963e9dc3a059094e1399"
+    git_date = "2018-12-27 09:26:00 -0600"
     keywords = {"refnames": git_refnames, "full": git_full, "date": git_date}
     return keywords
 



View it on GitLab: https://salsa.debian.org/debian-gis-team/satpy/compare/22d5e36b7c38940a81d930faf03b0de76d3aef13...069fb3be9b8356d694ceac382b515b61f8f1fbd9

-- 
View it on GitLab: https://salsa.debian.org/debian-gis-team/satpy/compare/22d5e36b7c38940a81d930faf03b0de76d3aef13...069fb3be9b8356d694ceac382b515b61f8f1fbd9
You're receiving this email because of your account on salsa.debian.org.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://alioth-lists.debian.net/pipermail/pkg-grass-devel/attachments/20181231/13d385c2/attachment-0001.html>


More information about the Pkg-grass-devel mailing list