From 482ef0e6815682975c9b859908ec80d3f1610701 Mon Sep 17 00:00:00 2001 From: Miguel de Val-Borro Date: Tue, 10 Nov 2015 23:19:01 -0500 Subject: [PATCH] replace string by S typestr This is compatible with python 2.x and 3.x --- pydis.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pydis.py b/pydis.py index 67973dd..8a81e07 100644 --- a/pydis.py +++ b/pydis.py @@ -171,7 +171,7 @@ def biascombine(biaslist, output='BIAS.fits', trim=True): # assume biaslist is a simple text file with image names # e.g. ls flat.00*b.fits > bflat.lis - files = np.loadtxt(biaslist,dtype='string') + files = np.loadtxt(biaslist, dtype='S') for i in range(0,len(files)): hdu_i = fits.open(files[i]) @@ -268,7 +268,7 @@ def flatcombine(flatlist, bias, output='FLAT.fits', trim=True, mode='spline', # assume flatlist is a simple text file with image names # e.g. ls flat.00*b.fits > bflat.lis - files = np.loadtxt(flatlist,dtype='string') + files = np.loadtxt(flatlist, dtype='S') for i in range(0,len(files)): hdu_i = fits.open(files[i])