That will easy a lot the problem in the future. It seems interesting and I
guess it won't be too hard to implement!

Raydel


2013/12/2 Dan CaJacob <dan.caja...@gmail.com>

> I have an interesting (to me anyway) idea:
>
> What if we added a default option to the GRC-XML-to-python converter to
> add the contents of the original GRC file as a big, delineated comment
> blob.  Then, a simple tool could pull the GRC back out of the python file
> anytime and you could go back and forth.  An option when building would
> disable the verbose output for those publishing code or who just don't want
> the extra cruft.
>
> It's a little lame, but it solves the problem.  I know I've had to
> hand-craft many old GRCs from python files when the original GRC was lost
> or the originator was other than myself.  The problem has often crept up
> with GRCs not properly updated for new versions of code, where the blocks
> go missing in the GRC representation (I think there was talk of fixing this
> - graying them out or something).
>
> Very Respectfully,
>
> Dan CaJacob
>
>
> On Mon, Dec 2, 2013 at 4:48 PM, Marcus Leech <mle...@ripnet.com> wrote:
>
>> Think of the Python that gets emitted by GRC as object code.  What you're
>> asking is to convert said object code back into reasonable source code.
>>
>> Such things exist for *actual* machine object-code, but, they produce
>> damned-ugly results.
>>
>> on Dec 02, 2013, *Raydel Abreu (CM2ESP)* <cm2...@gmail.com> wrote:
>>
>>  Oh, that's bad, I guess I should use instead the old code-reading
>> method....
>>
>> Raydel
>>
>>
>> 2013/12/2 Marcus Leech <mle...@ripnet.com>
>>
>>> There's no automatic mechanism for doing that.
>>>
>>>
>>> on Dec 02, 2013, *Raydel Abreu (CM2ESP)* <cm2...@gmail.com> wrote:
>>>
>>>  Hello,
>>>
>>> Is it possible to go back and convert a Python GNU Radio code back into
>>> the GRC Flow Graph from which it was generated?
>>>
>>> Cheers,
>>>
>>> Raydel, CM2ESP
>>>
>>> ------------------------------
>>>
>>> _______________________________________________
>>> Discuss-gnuradio mailing list
>>> Discuss-gnuradio@gnu.org
>>> https://lists.gnu.org/mailman/listinfo/discuss-gnuradio
>>>
>>>
>>>
>>
>>
>> _______________________________________________
>> Discuss-gnuradio mailing list
>> Discuss-gnuradio@gnu.org
>> https://lists.gnu.org/mailman/listinfo/discuss-gnuradio
>>
>>
>
_______________________________________________
Discuss-gnuradio mailing list
Discuss-gnuradio@gnu.org
https://lists.gnu.org/mailman/listinfo/discuss-gnuradio

Reply via email to