# Hi,

**URL:** <https://www.ruby-forum.com/t/hi/171376>\
**Category:** GNU Radio\
**Created:** [July 1, 2009, 11:34am UTC](https://www.ruby-forum.com/t/hi/171376 "2009-07-01T11:34:01Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Burak\_TUYSUZ](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/b/6a8cbe/32.png) [@Burak\_TUYSUZ](https://www.ruby-forum.com/u/Burak_TUYSUZ)\
**Post date:** [July 1, 2009, 11:34am UTC](https://www.ruby-forum.com/t/hi/171376/1 "2009-07-01T11:34:01Z")

</div>

Hello all,

I guess something changed on some packages and I am having problems to  
run  
this code.

# if self.u.db[0][0].dbid() != usrp\_dbid.BASIC\_RX:

# sys.stderr.write('This code requires a Basic Rx board on

Side  
A\n’)

# sys.exit(1)

self.u.db[0] this gives me error in my code which is kind of annoying.  
I can just omit this part which I found from another code but I want to  
learn how to make this work.  
Thank you.

---

<div class="post-metadata">

**Author:** ![Burak\_TUYSUZ](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/b/6a8cbe/32.png) [@Burak\_TUYSUZ](https://www.ruby-forum.com/u/Burak_TUYSUZ)\
**Post date:** [July 1, 2009, 1:16pm UTC](https://www.ruby-forum.com/t/hi/171376/2 "2009-07-01T13:16:55Z")

</div>

On Wed, Jul 1, 2009 at 02:06, Burak TUYSUZ[removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) wrote:

> I guess something changed on some packages and I am having problems to run  
> this code.
> 
> # if self.u.db[0][0].dbid() != usrp\_dbid.BASIC\_RX:
> 
> # sys.stderr.write('This code requires a Basic Rx board on Side
> 
> A\n’)
> 
> # sys.exit(1)

The dbid array is now a function, so ‘self.u.db[0][0]’ has become  
‘self.u.db(0, 0)’.

Johnathan
