[Kst] [Bug 163925] New: changeFrames(start, count, [, skip, [, ave]]) in the DataVector Class does not work properly

Yiwen Mao yiwenv at live.ca
Thu Jun 12 18:27:40 CEST 2008


------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
         
http://bugs.kde.org/show_bug.cgi?id=163925         
           Summary: changeFrames(start,count,[,skip,[,ave]]) in the
                    DataVector Class does not work properly
           Product: kst
           Version: unspecified
          Platform: unspecified
        OS/Version: Linux
            Status: UNCONFIRMED
          Severity: normal
          Priority: NOR
         Component: scripting
        AssignedTo: kst kde org
        ReportedBy: yiwenv live ca


Version:           1.7.0 (using KDE 4.0.1)
Installed from:    Unspecified
Compiler:          Fedora 6 
OS:                Linux

DataVectors will not be changed after applying chnageFrames(start,count)

//load a datasource file
kst> sr=new DataSource("~/graphics/kst/tests/asciimatrix.txt")
DataSource

//construct a DataVector
kst> v=new DataVector(sr,"test1",0,10)
DataVector

//view the values of v
kst> v.array
1.716299,1.716299,1.711721,1.711721,1.716299,1.716299,1.711721,1.707144,1.711721,1.711721

//apply changeFrames
kst> v.changeFrames(1,5)
undefined

//view the values of the modifed v
kst> v.array
1.716299,1.716299,1.711721,1.711721,1.716299,1.716299,1.711721,1.707144,1.711721,1.711721

v does not have any change instead of changing its number of frames to be 5 starting from the 1st frame of the original data.

//both v.frames and v.startFrame give false values after applying the method: changeFrames
kst> v.frames
0 //should be 5
kst> v.startFrame
0 //should be 1


More information about the Kst mailing list