Index: fact/tools/pyscripts/pyfact/pyfact_rename.py
===================================================================
--- fact/tools/pyscripts/pyfact/pyfact_rename.py	(revision 13021)
+++ fact/tools/pyscripts/pyfact/pyfact_rename.py	(revision 13022)
@@ -147,7 +147,7 @@
         # make 2D arrays: row = pixel, col = drs_slice
         acal_data = np.reshape(acal_data, (self.npix, self.nroi) )
-        blm = np.reshape(self.blm, (self.npix, 1024) )
-        tom = np.reshape(self.tom, (self.npix, 1024) )
-        gm  = np.reshape(self.gm,  (self.npix, 1024) )
+        blm = np.reshape(self.blm, (self.npix, self.Nblm) )
+        tom = np.reshape(self.tom, (self.npix, self.Ntom) )
+        gm  = np.reshape(self.gm,  (self.npix, self.Ngm) )
         
         for pixel in range( self.npix ):
