Bug 164246 - The inputs for the CorssPowerSpectrum cannot be set properly
Summary: The inputs for the CorssPowerSpectrum cannot be set properly
Status: RESOLVED NOT A BUG
Alias: None
Product: kst
Classification: Applications
Component: scripting (show other bugs)
Version: 1.x
Platform: unspecified Linux
: NOR normal
Target Milestone: ---
Assignee: kst
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-06-16 20:41 UTC by Yiwen Mao
Modified: 2008-06-17 01:38 UTC (History)
0 users

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Yiwen Mao 2008-06-16 20:41:25 UTC
Version:           1.7.0 (using KDE 4.0.1)
Compiler:          Fedora 6 
OS:                Linux

//access the CorssPowerSpectrum Clas

kst> c=CrossPowerSpectrum
CrossPowerSpectrum

//set the inputs
kst> c.v1=v;
Vector
kst> c.v2=v;
Vector
kst> c.length=new Scalar(10)
Scalar
kst> c.sample=new Scalar(10)
Scalar

//validate the inputs, returns false
kst> c.validate()
false

//The property valid is undefined
kst> c.valid
undefined
Comment 1 Andrew Walker 2008-06-17 01:38:33 UTC
You also need to set the output vectors, e.g:

c.real="rl"
c.imaginary="im"
c.frequency="fr"