Fix wrong check for test.fits file

The condition becomes true when the file test.fits
does not exist.

Signed-off-by: Agis Zisimatos <agzisim@gmail.com>
pull/27/head
Agis Zisimatos 2019-08-02 21:40:28 +03:00
parent 911da42c47
commit e97b72e7fb
1 changed files with 1 additions and 1 deletions

View File

@ -100,7 +100,7 @@ if __name__ == "__main__":
fnames = sorted(glob.glob("2*.fits"))
# Create reference calibration file
if not os.path.exists("test.fits"):
if os.path.exists("test.fits"):
solved = False
# Loop over files to find a suitable calibration file
for fname in fnames: