Re: cumulative total bug with array of size 1 [message #75724] |
Wed, 13 April 2011 14:12 |
David Fanning
Messages: 11724 Registered: August 2001
|
Senior Member |
|
|
Jeremy Bailin writes:
> I've just discovered a really annoying bug with TOTAL. At least, it seems like a bug to me in that it disagrees with the documentation:
>
> When you use TOTAL(/CUMULATIVE), the output is supposed to be "an array of the same size as the input". But it appears that if the input array has size of 1, then TOTAL returns a scalar instead of an array of size 1.
>
> This breaks an important piece of code I have that expects arrays.
>
>
Better one of your programs then 10 of mine. ;-)
Cheers,
David
--
David Fanning, Ph.D.
Fanning Software Consulting, Inc.
Coyote's Guide to IDL Programming: http://www.dfanning.com/
Sepore ma de ni thue. ("Perhaps thos speakest truth.")
|
|
|