From 684bf5291918f58e57d62af99d46ed7f7dd56edd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Nicolas=20Nar=C3=A7on?= <nicolas.narcon@gmail.com> Date: Sat, 1 Oct 2022 19:05:57 +0000 Subject: [PATCH 1/3] FIX: should be nb_channels instead of 0 --- pyotb/core.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pyotb/core.py b/pyotb/core.py index d309d85..5b9a895 100644 --- a/pyotb/core.py +++ b/pyotb/core.py @@ -846,7 +846,7 @@ class Slicer(App): elif isinstance(channels, slice): channels_start = channels.start if channels.start is not None else 0 channels_start = channels_start if channels_start >= 0 else nb_channels + channels_start - channels_end = channels.stop if channels.stop is not None else 0 + channels_end = channels.stop if channels.stop is not None else nb_channels channels_end = channels_end if channels_end >= 0 else nb_channels + channels_end channels_step = channels.step if channels.step is not None else 1 channels = range(channels_start, channels_end, channels_step) -- GitLab From 517265afa75d57861580d920e455a3928bdacc90 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Nicolas=20Nar=C3=A7on?= <nicolas.narcon@gmail.com> Date: Sat, 1 Oct 2022 19:08:16 +0000 Subject: [PATCH 2/3] Update version setup.py --- setup.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/setup.py b/setup.py index 639cd78..519ba5d 100644 --- a/setup.py +++ b/setup.py @@ -6,7 +6,7 @@ with open("README.md", "r", encoding="utf-8") as fh: setuptools.setup( name="pyotb", - version="1.5.3", + version="1.5.4", author="Nicolas Narçon", author_email="nicolas.narcon@gmail.com", description="Library to enable easy use of the Orfeo Tool Box (OTB) in Python", -- GitLab From b8edcdee6cbafd6d190256d318d8e3ffe25a3833 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Nicolas=20Nar=C3=A7on?= <nicolas.narcon@gmail.com> Date: Sat, 1 Oct 2022 19:08:31 +0000 Subject: [PATCH 3/3] Update version __init__.py --- pyotb/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pyotb/__init__.py b/pyotb/__init__.py index 10a9ed5..187b64a 100644 --- a/pyotb/__init__.py +++ b/pyotb/__init__.py @@ -1,6 +1,6 @@ # -*- coding: utf-8 -*- """This module provides convenient python wrapping of otbApplications.""" -__version__ = "1.5.3" +__version__ = "1.5.4" from .apps import * from .core import App, Output, Input, get_nbchannels, get_pixel_type -- GitLab