Commit 04156b6e authored by Johan Richard's avatar Johan Richard
Browse files

Corrected source filename with sframe if provided

parent 979ce170
......@@ -265,7 +265,12 @@ int main(int argc, char *argv[])
NPRINTF(stderr, "COMP: images of the sources\n");
if (M.pixel == 1)
e_pixel(M.npixel, M.pixelfile, "source.fits", source);
{
if(strcmp(ps.pixfile, ""))
e_pixel(M.npixel, M.pixelfile, ps.pixfile, source);
else
e_pixel(M.npixel, M.pixelfile, "source.fits", source);
}
if (M.pixel < 2)
{
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment