Commit c99698b42bfbf29a22a34c86d6b4dd3d7f2f8f84

Authored by Jürgen Knödlseder
1 parent 820f2389

Adapt to GammaLib interface change

test/test_csmodelsois.py
... ... @@ -2,7 +2,7 @@
2 2 # ==========================================================================
3 3 # This scripts performs unit tests for the csmodelsois tool.
4 4 #
5   -# Copyright (C) 2017-2018 Josh Cardenzana
  5 +# Copyright (C) 2017-2020 Josh Cardenzana
6 6 #
7 7 # This program is free software: you can redistribute it and/or modify
8 8 # it under the terms of the GNU General Public License as published by
... ... @@ -245,8 +245,8 @@ class Test(test):
245 245 self.test_value(len(cube.energies()), nmaps, 'Check number of energies')
246 246  
247 247 # Check dimensions
248   - self.test_value(cube.maps(), nmaps, 'Check number of maps')
249   - self.test_value(cube.pixels(), npixels, 'Check number of pixels')
  248 + self.test_value(cube.cube().nmaps(), nmaps, 'Check number of maps')
  249 + self.test_value(cube.cube().npix(), npixels, 'Check number of pixels')
250 250  
251 251 # Return
252 252 return
... ...
test/test_ctmapcube.py
... ... @@ -2,7 +2,7 @@
2 2 # ==========================================================================
3 3 # This scripts performs unit tests for the ctmapcube tool.
4 4 #
5   -# Copyright (C) 2016-2018 Juergen Knoedlseder
  5 +# Copyright (C) 2016-2020 Juergen Knoedlseder
6 6 #
7 7 # This program is free software: you can redistribute it and/or modify
8 8 # it under the terms of the GNU General Public License as published by
... ... @@ -247,8 +247,8 @@ class Test(test):
247 247 self.test_value(len(cube.energies()), nmaps, 'Check number of energies')
248 248  
249 249 # Check dimensions
250   - self.test_value(cube.maps(), nmaps, 'Check number of maps')
251   - self.test_value(cube.pixels(), npixels, 'Check number of pixels')
  250 + self.test_value(cube.cube().nmaps(), nmaps, 'Check number of maps')
  251 + self.test_value(cube.cube().npix(), npixels, 'Check number of pixels')
252 252  
253 253 # Return
254 254 return
... ...