I am trying to load complex data from a file to a Buffer Source, but not having any luck. For a simple example, I created a Buffer Source with a blockSize of 4. I manually set the values to:
1+2i
3+4i
5+6i
7+8i
I saved these to a file. The file (attached) contained:
1.000000 +2.000000i
3.000000 +4.000000i
5.000000 +6.000000i
7.000000 +8.000000i
as expected. However, if I then use that file to Load from file, the Buffer source module is loaded with:
1+0i
0+2i
3+0i
0+4i
I would assume that this should load the original values, right? What am I doing wrong?
5:35pm
Hi Jeff,
Are you using the Buffer Source module, or the Buffer Source w/ Properties module? The latter has a boolean isComplex argument which can be set for complex data.
Thanks,
Michael
5:45pm
Thanks for the quick response Michael. I have tried both the Buffer Source and Buffer Source with properties. Both of them seem to have a property page that allows me to select isComplex, so I don't know what the difference is? In any case, I get the same results for both. I have attached screenshots of the properties, and the values of the coefficients both before and after loading.
6:03pm
Hi Jeff,
Sorry for misunderstanding your first post. I've been able to verify this erroneous behavior on my end (albeit with slightly different results after loading the file) and this has all the makings of a bug. I will go ahead and report this to our development team.
Thanks,
Michael
12:45pm
Hi Michael,
I just wanted to check on the status of this. It can be a bit of a blocker for us, since I need to be able to load about 6000 coefficients, so typing them in manually isn't exactly an option. :-)
Thanks,
Jeff
1:50pm
The text file of complex values should not contain any spaces and have one complex value per line"
1+1i
2-2i
3+.25i
5:27pm
Looks like that did the trick -- thanks!