Re: real from tuple ??

Hi Garrett:

In this:

> ##   the following does not work
>       for i in range(0,len(wes)):
>          print wes[i].getValue()

If the problem is you get an "Attribute error: getValue", then this should
help:
What is returned by wes[i] is a RealTuple.  Since you want the first component
(number zero) of this, you need to use:  wes[i][0].getValue() to get the
floating point value.

Hope that helps.

tom

-- 
Tom Whittaker (tomw@xxxxxxxxxxxxx)
University of Wisconsin-Madison
Space Science and Engineering Center
Phone/VoiceMail: 608/262-2759
Fax: 608/262-5974


  • 2001 messages navigation, sorted by:
    1. Thread
    2. Subject
    3. Author
    4. Date
    5. ↑ Table Of Contents
  • Search the visad archives: