#509 problems interpreting subset of array of structures

closed-fixed
nobody
None
5
2013-01-29
2013-01-24
giloo
No

IDL:
IDL> structarray=replicate({test, value:0.0},10)
IDL> ;populate values:
IDL> structarray.value=findgen(10)
IDL> help,structarray.value
<Expression> FLOAT = Array[10]
IDL> ;get subset:
IDL> www=where(structarray.value gt 6)
IDL> help,www
WWW LONG = Array[3]
IDL> help,structarray[www].value
<Expression> FLOAT = Array[3]

GDL:
GDL> structarray=replicate({test, value:0.0},10)
GDL> ;populate values:
GDL> structarray.value=findgen(10)
GDL> help,structarray.value
<Expression> FLOAT = Array[10]
GDL> ;get subset:
GDL> www=where(structarray.value gt 6)
GDL> help,www
WWW LONG = Array[3]
GDL> help,structarray[www].value
% Subscript out of range [i].
% Execution halted at: $MAIN$

Discussion

  • Alain C.
    Alain C.
    2013-01-28

    I do confirm this important bug is present in the CVS, since Dec. 28.

    Fortunately, this bug is not present in the 0.9.3 TGZ code !

    Alain

     
  • Marc Schellens
    Marc Schellens
    2013-01-29

    • status: open --> closed-fixed