From c99698b42bfbf29a22a34c86d6b4dd3d7f2f8f84 Mon Sep 17 00:00:00 2001 From: Jürgen Knödlseder Date: Fri, 26 Jun 2020 16:56:01 +0200 Subject: [PATCH] Adapt to GammaLib interface change --- test/test_csmodelsois.py | 6 +++--- test/test_ctmapcube.py | 6 +++--- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/test/test_csmodelsois.py b/test/test_csmodelsois.py index 8aa8a14..8ef2f7e 100755 --- a/test/test_csmodelsois.py +++ b/test/test_csmodelsois.py @@ -2,7 +2,7 @@ # ========================================================================== # This scripts performs unit tests for the csmodelsois tool. # -# Copyright (C) 2017-2018 Josh Cardenzana +# Copyright (C) 2017-2020 Josh Cardenzana # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by @@ -245,8 +245,8 @@ class Test(test): self.test_value(len(cube.energies()), nmaps, 'Check number of energies') # Check dimensions - self.test_value(cube.maps(), nmaps, 'Check number of maps') - self.test_value(cube.pixels(), npixels, 'Check number of pixels') + self.test_value(cube.cube().nmaps(), nmaps, 'Check number of maps') + self.test_value(cube.cube().npix(), npixels, 'Check number of pixels') # Return return diff --git a/test/test_ctmapcube.py b/test/test_ctmapcube.py index 720953b..86eade1 100755 --- a/test/test_ctmapcube.py +++ b/test/test_ctmapcube.py @@ -2,7 +2,7 @@ # ========================================================================== # This scripts performs unit tests for the ctmapcube tool. # -# Copyright (C) 2016-2018 Juergen Knoedlseder +# Copyright (C) 2016-2020 Juergen Knoedlseder # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by @@ -247,8 +247,8 @@ class Test(test): self.test_value(len(cube.energies()), nmaps, 'Check number of energies') # Check dimensions - self.test_value(cube.maps(), nmaps, 'Check number of maps') - self.test_value(cube.pixels(), npixels, 'Check number of pixels') + self.test_value(cube.cube().nmaps(), nmaps, 'Check number of maps') + self.test_value(cube.cube().npix(), npixels, 'Check number of pixels') # Return return -- libgit2 0.21.4