GRC questions

Josh,

Two issues in GNU Radio companion.

I’m working on a hier_block in GRC and want it to have multiple outputs.
When I generate the block, though, I get a few problems. First, only one
output pad is exposed. Looking at the generated XML file, I see that
only
one source block is being created (I have four pad sinks). When I look
at
the Python file, the io signature for the output is correct, but any
calls
to the output are all (self,0), so there seems to be no distinction of
what
pad sink is being used.

When I hand-edited the files to what they should be, the block works
fine in
GRC.

Is this a bug or am I doing something wrong?

Also, when I double-click on a QtGui sink, I get this message in my
console:

Traceback (most recent call last):
File
“/usr/local/lib/python2.6/dist-packages/gnuradio/grc/gui/Param.py”,
line 56, in _update_gui
Utils.parse_template(TIP_MARKUP_TMPL, param=self.param).strip(),
File
“/usr/local/lib/python2.6/dist-packages/gnuradio/grc/gui/Utils.py”,
line 89, in parse_template
return str(Template(tmpl_str, kwargs))
File “/usr/lib/pymodules/python2.6/Cheetah/Template.py”, line 981, in
str
def str(self): return getattr(self, mainMethName)()
File
“cheetah_DynamicallyCompiledCheetahTemplate_1303402270_04_59718.py”,
line 131, in respond
File
“cheetah_DynamicallyCompiledCheetahTemplate_1303402270_04_59718.py”,
line 88, in truncate
TypeError: () takes exactly 1 argument (0 given)

Thanks,
Tom

On 04/21/2011 09:19 AM, Tom R. wrote:

pad sink is being used.

When I hand-edited the files to what they should be, the block works fine in
GRC.

Is this a bug or am I doing something wrong?

Thats a long-standing bug thats been around since the vector of
io_signatures was added. I guess I will fix it this time before I get
too distracted.

str
def str(self): return getattr(self, mainMethName)()
File “cheetah_DynamicallyCompiledCheetahTemplate_1303402270_04_59718.py”,
line 131, in respond
File “cheetah_DynamicallyCompiledCheetahTemplate_1303402270_04_59718.py”,
line 88, in truncate
TypeError: () takes exactly 1 argument (0 given)

I have seen that too. Its been innocuous enough to ignore, so i have
never looked into the cause.

-Josh

Thats a long-standing bug thats been around since the vector of
io_signatures was added. I guess I will fix it this time before I get
too distracted.

Try my fix on jblum.git fix/grc/multi_pad:
http://gnuradio.org/cgit/jblum.git/commit/?id=a4ac44d7adbd9c6cdd107ec7985e294fea81845a

-Josh

On Thu, Apr 21, 2011 at 2:04 PM, Josh B. [email protected] wrote:

-Josh

That did the trick all right!

Thanks for the quick turnaround!

Tom

On Thu, Apr 21, 2011 at 12:50 PM, Josh B. [email protected] wrote:

one source block is being created (I have four pad sinks). When I look at
Is this a bug or am I doing something wrong?

Thats a long-standing bug thats been around since the vector of
io_signatures was added. I guess I will fix it this time before I get
too distracted.

Great, thanks!

line 89, in parse_template
TypeError: () takes exactly 1 argument (0 given)

I have seen that too. Its been innocuous enough to ignore, so i have
never looked into the cause.

-Josh

Yeah, it doesn’t do anything, I just wanted to report it.

Thanks,
Tom

On Thu, Apr 21, 2011 at 4:19 PM, Marcus D. Leech [email protected]
wrote:

is far too productive to be a single person :slight_smile: Although I have
met Josh in “meat space”, and he appeared to consist of a single instance
of homo sapiens. But that could be a trick.

The other bodies were probably charging at the time. They have a large
Nissan Leaf solar charging station they converted just for this purpose.

We’re working on getting the first duplicate of Nick into production
soon,
too.

Tom

On 21/04/2011 4:29 PM, Tom R. wrote:

The other bodies were probably charging at the time. They have a large
Nissan Leaf solar charging station they converted just for this purpose.
Ah, it’s all clear to me now. [“You see, something’s going to happen.
Something wonderful”, David Bowman, 2010].

We’re working on getting the first duplicate of Nick into production
soon, too.

Jason once expressed the desire to clone me, and ship my clone off to
California so I could be the on-site tech-support guy :slight_smile:

On 21/04/2011 4:10 PM, Tom R. wrote:

That did the trick all right!

Thanks for the quick turnaround!

You know, I’ve previously observed that the object we know as “Josh
Blum” is far too productive to be a single person :slight_smile: Although I have
met Josh in “meat space”, and he appeared to consist of a single
instance of homo sapiens. But that could be a trick.

Is “Josh B.” like Nicolas Bourbaki? If so we need to start a
Wikipedia
page for that committee as well.

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs