Bug 164246

Summary: The inputs for the CorssPowerSpectrum cannot be set properly
Product: [Applications] kst Reporter: Yiwen Mao <yiwenv>
Component: scriptingAssignee: kst
Status: RESOLVED NOT A BUG    
Severity: normal    
Priority: NOR    
Version: 1.x   
Target Milestone: ---   
Platform: unspecified   
OS: Linux   
Latest Commit: Version Fixed In:

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"