Skip to content

Commit

Permalink
code quality improvement
Browse files Browse the repository at this point in the history
  • Loading branch information
pkukic committed Jan 3, 2019
1 parent 798d498 commit 484a7dd
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/Sniffer.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ def findFits(search_dir, maxn=None, check=None):

log.info('Finding all FITS files...')

for root, dirs, files in os.walk(search_dir):
for files in os.walk(search_dir)[2]:
for file in files:
if file.endswith('.fits') or file.endswith('.fit'):
abs_fname = absName(search_dir, file)
Expand Down Expand Up @@ -63,6 +63,7 @@ def getFitsTime(fits_fname):
with fits.open(fits_fname) as hdul:

time_str = hdul[0].header['DATE-OBS']

time = timeStr2Object(time_str)

return time
Expand Down

0 comments on commit 484a7dd

Please sign in to comment.