Hi Rolando,
The problems you are running into now are python issues. I've never used
the python scripts you are using, so I can't be of much help. I'm not sure
if the people who wrote them are still up for supporting them, so I think
the best thing is to dive in yourself. In this particular case, it's saying
that trying to reshape the "bps" array (presumably bandpass?) to have
dimensions self.n_ants x self.n_chans because the number of elements in the
array is not self.nants * self.nchans.

So you can do various things, like use the python debugger to see what the
values are, or just put in some print statements to see... i.e. this would
be helpful for figuring out your current problem:

print "shape of bps is:",bps.shape
print "nants is",self.n_ants
print "nchans is", self.n_chans

>From there you can then figure out why the values are not what you expect
them to be...

Hope this is helpful,
Glenn


On Fri, Mar 21, 2014 at 3:31 AM, Rolando Paz <[email protected]> wrote:

> I had problems with add image, then copy the text:
>
> rolando@rolando-MS-7815:~/ibob/poco011$ poco_rx_i8_c256.py i8_c256.config
>
> Parsing config file i8_c256.config...OK
> Listening on port 7
> Expecting integration sizes of 18432 vectors, or 73728 bytes
> C2M Parameters:
> N Antennas: 8
> Bandwidth: 0.200000 GHz
>  SDF: 0.000781 GHz
> Int Time: 0.000041 s
> Array location:  ['38:25:59.24', '-79:51:02.1']
> Recording Bandpass to file...
> Traceback (most recent call last):
>   File "/usr/local/bin/poco_rx_i8_c256.py", line 408, in <module>
>     udp_rx.set_bandpass()
>   File "/usr/local/bin/poco_rx_i8_c256.py", line 124, in set_bandpass
>     bps.shape=(self.n_ants,self.n_chans)
> ValueError: total size of new array must be unchanged
> rolando@rolando-MS-7815:~/ibob/poco011$
>
>
>
> ---------- Forwarded message ----------
> From: Rolando Paz <[email protected]>
> Date: 2014-03-21 1:28 GMT-06:00
> Subject: MIRIAD FILE // IBOB CORRELATOR
> To: "[email protected]" <[email protected]>
>
>
> Hi everyone ...
>
> Regarding my problem with python and IBOB was the use of a wrong conf file
> :-)
>
> Now I found a new problem. Attached image.
>
> I also think that now I must enter the correct data, inside scripts, to
> obtain the correct file MIRIAD.
>
> I hope someone can guide me.
>
> Best Regards
> Rolando Paz
>
>

Reply via email to