Skip to content

Commit

Permalink
Add destination directory
Browse files Browse the repository at this point in the history
  • Loading branch information
darafferty committed Jun 14, 2024
1 parent dfe265a commit 0a8f769
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion bdsf/islands.py
Original file line number Diff line number Diff line change
Expand Up @@ -144,7 +144,8 @@ def __call__(self, img):
if opts.savefits_rankim or opts.output_all:
resdir = img.basedir + '/misc/'
os.makedirs(resdir, exist_ok=True)
func.write_image_to_file(img.use_io, img.imagename + '_pyrank.fits', pyrank, img)
func.write_image_to_file(img.use_io, img.imagename + '_pyrank.fits', pyrank, img, resdir)
mylog.info('%s %s' % ('Writing ', resdir+img.imagename+'_pyrank.fits'))

img.pyrank = pyrank

Expand Down

0 comments on commit 0a8f769

Please sign in to comment.