Skip to content

Commit

Permalink
Minor bug fix for nospline
Browse files Browse the repository at this point in the history
  • Loading branch information
Kelley M. Hess committed Oct 24, 2020
1 parent 3b6932a commit 339ee14
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sourcefinding.py
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,7 @@ def run(i):
# Check to see if the spline fitted file exists. If not, make it from filtered file.
if (not overwrite) & os.path.isfile(splinefits):
print("[SOURCEFINDING] Spline fitted file exists and will not be overwritten.")
elif os.path.isfile(sourcefits) & (not args.nospline):
elif os.path.isfile(filteredfits) & (not args.nospline):
print(" - Loading the input cube")
os.system('cp {} {}'.format(filteredfits, splinefits))
splinecube = fits.open(splinefits, mode='update')
Expand Down

0 comments on commit 339ee14

Please sign in to comment.