discuss-gnuradio
[Top][All Lists]
Advanced

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

Re: [Discuss-gnuradio] Ben's docstring work


From: Josh Blum
Subject: Re: [Discuss-gnuradio] Ben's docstring work
Date: Sat, 15 Oct 2011 16:16:01 -0700
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:7.0.1) Gecko/20110929 Thunderbird/7.0.1

> 
> Hi Josh,
> 
> The docstrings should be accessible using the __doc__ property in the
> normal way.
> 
> If you look at the generated python file the docstrings should be
> present in the function and class definitions as usual.
> e.g.
> def kurtolic_equalizer_cc(blah blah):
>     "docstring here"
>     blah blah blah
> 
> If that's not happening, then it's not working.
> 

Looks like i did it wrong then. But I cant see anything wrong with the
process. :-)

python -c "from gnuradio import digital; print
digital.kurtotic_equalizer_cc.__doc__"

kurtotic_equalizer_cc(int num_taps, float mu) ->
digital_kurtotic_equalizer_cc_sptr

> I cloned your repo and checked out your swig_docs branch but got a
> compilation error.
> 
> [ 46%] Generating gengen/gr_peak_detector_fb.i,
> gengen/gr_peak_detector_ib.i, gengen/gr_peak_detector_sb.i
> [ 51%] Built target gengen_generated
> [ 51%] Swig source
> [ 52%] Swig source
> /home/ben/gnuradio-jblum/jblum/gnuradio-core/src/lib/gengen/gengen.i:33:
> Error: Unable to find 'gengen_generated.i'
> make[2]: *** [gnuradio-core/src/lib/swig/gnuradio_core_gengenPYTHON_wrap.cxx]
> Error 1
> make[1]: *** 
> [gnuradio-core/src/lib/swig/CMakeFiles/_gnuradio_core_filter.dir/all]
> Error 2
> make: *** [all] Error 2
> 

Ah, yea, I fixed that this morning but forgot to push. Just re-checkout
the repo.

-Josh



reply via email to

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