Commit f837d81c884db5df39fd81e9e4568196803a6454

Authored by Jürgen Knödlseder
1 parent a42feb9f

Adapt to new GFitsTableCol::nrows() method name

cscripts/cscaldb.py
@@ -121,7 +121,7 @@ class cscaldb(ctools.cscript): @@ -121,7 +121,7 @@ class cscaldb(ctools.cscript):
121 121
122 # Extract response names from calibrations and append them to the 122 # Extract response names from calibrations and append them to the
123 # response name list 123 # response name list
124 - nrows = calibrations.length() 124 + nrows = calibrations.nrows()
125 ncols = calibrations.number() 125 ncols = calibrations.number()
126 for row in range(nrows): 126 for row in range(nrows):
127 for col in range(ncols): 127 for col in range(ncols):
cscripts/csiactcopy.py
@@ -239,7 +239,7 @@ class csiactcopy(ctools.cscript): @@ -239,7 +239,7 @@ class csiactcopy(ctools.cscript):
239 239
240 # Loop over rows and columns to copy over values exteding remote HDU 240 # Loop over rows and columns to copy over values exteding remote HDU
241 for col in tmp_hdu: 241 for col in tmp_hdu:
242 - for row in range(col.length()): 242 + for row in range(col.nrows()):
243 remote_hdu[col.name()][size + row] = col[row] 243 remote_hdu[col.name()][size + row] = col[row]
244 244
245 # Get remote obs_id 245 # Get remote obs_id
@@ -329,7 +329,7 @@ class csiactcopy(ctools.cscript): @@ -329,7 +329,7 @@ class csiactcopy(ctools.cscript):
329 remote_col = remote_hdu[i] 329 remote_col = remote_hdu[i]
330 330
331 # Loop over entries and merge 331 # Loop over entries and merge
332 - for j in range(remote_col.length()): 332 + for j in range(remote_col.nrows()):
333 local_col[j+old_local_rows] = remote_col[j] 333 local_col[j+old_local_rows] = remote_col[j]
334 334
335 # Save local fits file 335 # Save local fits file