discuss-gnuradio
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Discuss-gnuradio] Booting a new USRP


From: Eric Blossom
Subject: Re: [Discuss-gnuradio] Booting a new USRP
Date: Sat, 19 Feb 2005 14:15:58 -0800
User-agent: Mutt/1.5.6i

On Sat, Feb 19, 2005 at 01:21:08AM -0800, John Gilmore wrote:
> > There's a second problem caused by 
> > 
> >   from gnuradio import usrp
> > 
> > in the python code.  This import probes the USB trying to figure out
> > what kind of a usrp is out there.  If there's no USRP it fails.
> > I should probably just back out the check for the old usrp0's.  The
> > 1's and 2's have the same high level interface.
> 
> In general I wonder -- is it the practice in Python to have "includes"
> run off and do things that could cause errors?  I'm used to more static
> languages where if you import a library, it just lays there until you call
> it.   :-)   That way, you can parse your arguments and produce your error
> messages, and maybe never even call that included package, depending on
> the options you were passed.

Agreed.  The imports shouldn't be causing problems.

Eric




reply via email to

[Prev in Thread] Current Thread [Next in Thread]