View on GitHub

IRAF Community Distribution

IRAF maintained by the community

Home | Installation | Packages | X11IRAF | PyRAF | Forum

Fwd: xdimsum.makemask: duplicate keyword argument

Francisco Valdes wrote on Nov 14, 2005

From: Sergio Gelato <Sergio.Gelato@astro.su.se ([email]sergio.gelato@astro.su.se[/email])>
Date: November 5, 2005 5:02:37 AM MST
To: Frank Valdes <valdes@noao.edu ([email]valdes@noao.edu[/email])>
Subject: Re: xdimsum.makemask: duplicate keyword argument

Frank Valdes wrote:

Hello Sergio,

Yes the duplicate use of zloreject at line 198 is an error.  How it  affects PyRAF and if that is the actual source of the error you would  have to ask the developers of PyRAF (at help@stsci.edu ([email]help@stsci.edu[/email])).  XDIMSUM was  not developed with regards to working under PyRAF and there are some  tasks which do not work with that command interpreter.

I will fix the duplicate definition you identified and if you make  the change and it fixes the problem you are having I would appreciate  an email.


I have made the change, and it did fix the problem.



Yours,
Frank Valdes

On Nov 2, 2005, at 7:51 AM, Sergio Gelato wrote:

A local user pointed out the following error which manifests itself  when
running "epar makemask" under PyRAF:

SyntaxError: duplicate keyword argument (<CL script  xdimsum.makemask>, line 176)

The error message is from Python, which explains why the problem isn't
seen under the classic cl.

The closest instance of a duplicate keyword I could find is at line  198
of makemask.cl (we are running xdimsum 020806) where "zloreject=INDEF"
appears twice.
I guess that the second instance was meant to be "zhireject=INDEF";
can anyone confirm and/or point us to a better version of xdimsum?




Post generated using Mail2Forum (http://www.mail2forum.com)

Last post on Nov 14, 2005