Skip to content

Commit 83cb829

Browse files
author
Macy Huston
committed
debug makelog-- only grab real image files
1 parent f3fd5bc commit 83cb829

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

kai/reduce/kai_util.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,11 +41,11 @@ def makelog(directory, outfile='image_log.txt',
4141
print(( 'Cannot access directory ' + directory ))
4242

4343
# Remove old *flip files and the old log.
44-
old = glob.glob(directory + '/*flip.fits')
44+
old = glob.glob(directory + '/i*flip.fits')
4545
util.rmall(old)
4646
util.rmall([directory+'image_log.txt'])
4747

48-
files = glob.glob(directory + '/*.fits')
48+
files = glob.glob(directory + '/i*.fits')
4949
files.sort()
5050
f = open(directory + '/' + outfile, 'w')
5151

0 commit comments

Comments
 (0)