Skip to content

Commit

Permalink
digest.py -- fix for hipercam
Browse files Browse the repository at this point in the history
was not getting the comparison with MD5 right
  • Loading branch information
trmrsh committed May 12, 2021
1 parent e1008d7 commit 24a9f83
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions hipercam/scripts/digest.py
Original file line number Diff line number Diff line change
Expand Up @@ -202,7 +202,7 @@ def digest(args=None):

telescope = os.path.join(ndir, 'telescope')
if os.path.exists(telescope):
print(f'ERROR: file called "telescope" allready exists in {ndir}')
print(f'ERROR: file called "telescope" already exists in {ndir}')
return

# compile list of runs in the directory
Expand Down Expand Up @@ -248,7 +248,7 @@ def digest(args=None):
with open(md5) as fin:
for line in fin:
hash, name = line.split()
if name.endswith(".xml") or name.endswith(".dat"):
if name.endswith(".xml") or name.endswith(".dat") or name.endswith(".fits"):
mruns.append(name[: name.rfind(".")])

else:
Expand Down

0 comments on commit 24a9f83

Please sign in to comment.