<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by Swapnil Negi on Medium]]></title>
        <description><![CDATA[Stories by Swapnil Negi on Medium]]></description>
        <link>https://medium.com/@swapnilnegi?source=rss-bc448d72dc0b------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*ZhcZPaKm94dLWWD5f33SSg.png</url>
            <title>Stories by Swapnil Negi on Medium</title>
            <link>https://medium.com/@swapnilnegi?source=rss-bc448d72dc0b------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sun, 22 Nov 2026 21:50:24 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@swapnilnegi/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[gr-modtool overhaul, GSoC’18]]></title>
            <link>https://medium.com/@swapnilnegi/gr-modtool-overhaul-gsoc18-bb0277d1d3af?source=rss-bc448d72dc0b------2</link>
            <guid isPermaLink="false">https://medium.com/p/bb0277d1d3af</guid>
            <category><![CDATA[gsoc]]></category>
            <category><![CDATA[open-source]]></category>
            <category><![CDATA[programming]]></category>
            <category><![CDATA[python]]></category>
            <category><![CDATA[google-summer-of-code]]></category>
            <dc:creator><![CDATA[Swapnil Negi]]></dc:creator>
            <pubDate>Wed, 08 Aug 2018 05:56:39 GMT</pubDate>
            <atom:updated>2018-08-17T10:50:07.392Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/306/1*AE5y_S4GPb9HNG9f0hHL0Q.png" /></figure><p><em>gr-modtool automates the boring, monotonous work involved in writing the boilerplate code, makefile editing, etc. so that the module developer can directly jump into the DSP coding portion.</em></p><p><em>gr_modtool is available in the GNU Radio source tree and is installed by default.</em></p><h3>Introduction</h3><p>For the last three months, I’ve been working with <a href="https://www.gnuradio.org/"><strong>GNU Radio</strong></a>, an open source organisation selected for the <a href="https://summerofcode.withgoogle.com/"><strong>Google Summer of Code</strong></a> program. It has been an amazing experience and I’ve learnt a lot over the summer under the mentor-ship of Sebastian Koslowski and Nicolas Cuervo.</p><p>I started contributing to the GNU Radio project in March’18. Since then there have been a total of more than 15 PRs from me.</p><p>The task for the GSoC project was an overhaul for the existing gr-modtool making it more user-friendly as well as developer-friendly.</p><p>The major <a href="https://github.com/gnuradio/gnuradio/pull/1873">pull request</a> for the GSoC project includes most of the work excluding the <a href="https://github.com/swap-nil7/modtool_gui">Graphical User Interface</a> and the <a href="https://github.com/gnuradio/gnuradio/commits?author=swap-nil7">commits</a> to GNU Radio version 3.7.</p><h3>Main Product</h3><p>In the last 3 months, we have achieved the following major goals:-</p><p><strong>Plug-in Architecture: </strong>The command line interface for gr-modtool has been re-written as plug-in architecture to make it more extensible and modular. Now, the gr-modtool also supports external plug-ins. I have created a <a href="https://wiki.gnuradio.org/index.php/ModtoolArchitecture">wiki page</a> with the details regarding the plug-in architecture and the external plug-in support. A screenshot with an external command <strong>cmd </strong>looks like<strong>:</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/638/1*uES8AxTBO3J6SaHF5opabw.png" /></figure><p><strong>API: </strong>[<a href="https://github.com/swap-nil7/gnuradio/tree/swapnil_next/gr-utils/python/modtool/core">Code</a>]<strong> </strong>A python API has been exposed for the modtool classes which has highly increased its scope and efficiency. Users have the liberty to instantiate an object of the ModTool subclass and assign the necessary values later. The API classes are equipped with proper validation of the passed parameters.</p><p><strong>Coloured Logging: </strong>The command line interface has been made more interactive by the introduction of ANSI colours. So, if <strong>colorama</strong> is installed, the Command line interface for the command <strong>add </strong>looks like:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/843/1*UiHDP-2MOviqxKIXBPYr9g.png" /></figure><p><strong>Replace makexml by makeyaml: </strong>The command <strong>makexml </strong>has been replaced with <strong>makeyaml</strong> which generates a more human-readable YAML file instead of an XML file. XML scripts will no longer be available in the 3.8 release.</p><p><strong>XML to YAML Converter: </strong>[<a href="https://github.com/swap-nil7/gnuradio/blob/swapnil_next/gr-utils/python/modtool/tools/grc_yaml_generator.py">Code]</a> An XML to YAML convertor has also been added as a plug-in command as well API class for the ease of the users to switch to YAML from XML.</p><p><strong>GUI: </strong>The work on the Graphical User Interface is still in progress but the interface is usable even in its current state. The work was an extension to the GSoC project and its current status is exactly according to the one planned.</p><p>The interface for the command <strong>add </strong>looks like<strong>:</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/734/1*63sSgRzkOG-IhRkgiKnTSA.png" /></figure><p><strong>Sequence Completion: </strong>The gr-modtool has also been equipped with Sequence Completion of the block-candidates, copyright candidates, etc. for all the commands. A list of suggested alternatives will be displayed in case of an incorrect blockname.</p><h3>Developer View</h3><p><strong>Python 3: </strong>The gr-modtool in the branch <strong>next </strong>has been moved entirely from Python 2.x to Python 3.</p><p><strong>CLI parsing: </strong>[<a href="https://github.com/swap-nil7/gnuradio/tree/swapnil_next/gr-utils/python/modtool/cli">Code</a>]<strong> </strong>The CLI parsing module for gr-modtool has been changed from Argparse to Click for simplicity and greater extensibility.</p><p><strong>Logger: </strong>All the print statements in the ModTool classes have been replaced with <strong>logging.logger </strong>which makes the <strong>stdout </strong>of the gr-modtool much more customizable.</p><p><strong>ModTool Tests: </strong>[<a href="https://github.com/swap-nil7/gnuradio/blob/swapnil_next/gr-utils/python/modtool/tests/test_modtool.py">Code</a>]<strong> </strong>Proper unittests have also been added for the ModTool subclasses which makes the life of the modtool developer much more simpler.</p><p><strong>Split of python modules: </strong>The python modules for the gr-modtool have been split into <strong>core, cli, tools, templates, and tests</strong> which enhances the developer experience.</p><h3><strong>Important Links</strong></h3><p>The commits for the most recent state of the gr-modtool can be followed in my forked repository branch <a href="https://github.com/swap-nil7/gnuradio/commits/swapnil_next">swapnil_next</a>.</p><p>The code for the GUI for the gr-modtool can be followed in my repository <a href="https://github.com/swap-nil7/modtool_gui">modtool_gui</a>.</p><p>The specific details regarding the project are available in my <a href="https://grmodtool.wordpress.com/">blog posts</a> as well as well as <a href="https://github.com/swap-nil7/gnuradio/projects/1">GitHub project</a>.</p><p>The major <a href="https://github.com/gnuradio/gnuradio/pull/1873">pull request</a> for the GSoC project.</p><h4>Experience</h4><p>It was a brilliant experience to work with the GNU Radio Community. The members of the community are highly supportive. I really look forward to work more for the organisation.</p><h4>Thank You!</h4><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=bb0277d1d3af" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>