mscred.mscarith problem report
Guest wrote on Mar 01, 2006
Hello,
There's a typo in mscred.mscarith.cl which prevents msarith from
running in pyraf.
line# 25 in msarith.cl should be changed from
int nop1, nop2, nresults, next1, next2, nexts, n
to
int nop1, nop2, nresult, next1, next2, nexts, n
The error in pyraf is:
apply(self._clFunction, parList, kw)
File "<CL script mscred.mscarith>", line 90, in mcsarith
taskObj.nresult = iraf.sections.nimages
File "/usr/stsci/pyssgdev/2.4.2/pyraf/iraftask.py", line 1135, in __setattr__
raise AttributeError(str(e))
AttributeError: Unknown parameter requested: nresult
Nadia Dencheva
Post generated using Mail2Forum (http://www.mail2forum.com)
There's a typo in mscred.mscarith.cl which prevents msarith from
running in pyraf.
line# 25 in msarith.cl should be changed from
int nop1, nop2, nresults, next1, next2, nexts, n
to
int nop1, nop2, nresult, next1, next2, nexts, n
The error in pyraf is:
apply(self._clFunction, parList, kw)
File "<CL script mscred.mscarith>", line 90, in mcsarith
taskObj.nresult = iraf.sections.nimages
File "/usr/stsci/pyssgdev/2.4.2/pyraf/iraftask.py", line 1135, in __setattr__
raise AttributeError(str(e))
AttributeError: Unknown parameter requested: nresult
Nadia Dencheva
Post generated using Mail2Forum (http://www.mail2forum.com)
Mike Fitzpatrick wrote on Mar 01, 2006
Hi Nadia,
I'm sure Frank will fix this however it is technically legal because of the cl parameter abbreviation mechanism, e.g.
ecl> int nresults
ecl> nresults = 12345
ecl> =nr
12345
This is clearly a typo, other instances however might simply be programmer slack. Anyway, thanks for pointing it out.
Cheers,
-Mike
I'm sure Frank will fix this however it is technically legal because of the cl parameter abbreviation mechanism, e.g.
ecl> int nresults
ecl> nresults = 12345
ecl> =nr
12345
This is clearly a typo, other instances however might simply be programmer slack. Anyway, thanks for pointing it out.
Cheers,
-Mike
Guest wrote on Mar 01, 2006
Yes this was a typo mistake which has been fixed as suggested for future releases.
Frank
Frank
rrbernardi wrote on Jul 08, 2016
Hi,
I found the same problem in the new version of MSCRED. I'm use with IRAF v2.16.
To the fix typo, in mscred.mscarith.cl file, line 25, I change the variable name "nresults" to "nresult".
Rafael
Mike Fitzpatrick wrote on Jul 09, 2016
Somehow the old bug crept back in, sorry 'bout that. I've rebuilt the distribution files with the fix so any new installations should be fine.
Last post on Jul 09, 2016