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
parent
911da42c47
commit
e97b72e7fb
|
@ -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:
|
||||
|
|
Loading…
Reference in New Issue