discuss-gnuradio
[Top][All Lists]
Advanced

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

Parameter calculated from a variable breaks python code generation


From: Christophe Seguinot
Subject: Parameter calculated from a variable breaks python code generation
Date: Thu, 4 Mar 2021 18:47:01 +0100
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.7.1

Hi

I'm facing a strange an erratic issue in the attached flowgraph used in GR 3.8.2. This flowgraph is only used to demonstrate the issue, it doesn't do anything!

The issue appears when I'm defining a fractional bandwith (fbw) as "1/sps" instead of a float value.

Generating: '/home/seguinot/desktop/test_grc/test_fbw.py'
Generate Error: (ValueError("could not convert string to float: '0.4/sps'"), 'filter.rational_resampler_${type}(\n        interpolation=${interp},\n        decimation=${decim},\n% if taps:\n        taps=${taps},\n% else:\n        taps=None,\n% endif\n% if float(fbw) != 0:\n        fractional_bw=${fbw})\n% else:\n        fractional_bw=None)\n% endif')
>>> Failure

Am I doing something wrong? 


Regards Christophe

Attachment: test_fbw.grc
Description: application/gnuradio-grc


reply via email to

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