From f837d81c884db5df39fd81e9e4568196803a6454 Mon Sep 17 00:00:00 2001 From: Jürgen Knödlseder Date: Wed, 7 Jun 2017 01:59:32 +0200 Subject: [PATCH] Adapt to new GFitsTableCol::nrows() method name --- cscripts/cscaldb.py | 2 +- cscripts/csiactcopy.py | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/cscripts/cscaldb.py b/cscripts/cscaldb.py index d43f342..7b61a27 100755 --- a/cscripts/cscaldb.py +++ b/cscripts/cscaldb.py @@ -121,7 +121,7 @@ class cscaldb(ctools.cscript): # Extract response names from calibrations and append them to the # response name list - nrows = calibrations.length() + nrows = calibrations.nrows() ncols = calibrations.number() for row in range(nrows): for col in range(ncols): diff --git a/cscripts/csiactcopy.py b/cscripts/csiactcopy.py index fe11a3f..05bd4f7 100755 --- a/cscripts/csiactcopy.py +++ b/cscripts/csiactcopy.py @@ -239,7 +239,7 @@ class csiactcopy(ctools.cscript): # Loop over rows and columns to copy over values exteding remote HDU for col in tmp_hdu: - for row in range(col.length()): + for row in range(col.nrows()): remote_hdu[col.name()][size + row] = col[row] # Get remote obs_id @@ -329,7 +329,7 @@ class csiactcopy(ctools.cscript): remote_col = remote_hdu[i] # Loop over entries and merge - for j in range(remote_col.length()): + for j in range(remote_col.nrows()): local_col[j+old_local_rows] = remote_col[j] # Save local fits file -- libgit2 0.21.4