Sign in

pyFDA — Digital Filter Design

Analytical tool to design Discrete-time Digital Filter

A digital filter is a system that performs mathematical operations on a sampled, discrete-time signal to reduce or enhance certain aspects of that signal. Although filters are easily understood and calculated, the practical challenges of their design and implementation are significant and are the subject of much-advanced research.

“Teachers can open the door, but you must enter it yourself.” — Chinese proverb

Python Filter Design Analysis Tool

pyFDA is a GUI based tool in Python / Qt for analyzing and designing discrete-time filters. When the migen module is installed, fixpoint implementations (for some filter types) can be simulated and exported as synthesizable Verilog netlists.

pyFDA supports the following features:

#1 Filter design

  • Design…

Cleanup Python Code

Decluttering doesn’t happen overnight. It’s a process — and often, one that requires equal parts motivation and inspiration

Autoflake removes unused imports and unused variables from Python code. It makes use of pyflakes to do this. Pyflakes analyzes programs and detects various errors. It works by parsing the source file, not importing it, so it is safe to use on modules with side effects. It’s also much faster.

By default, autoflake only removes unused imports for modules that are part of the standard library. (Other modules may have side effects that make them unsafe to remove automatically.) Removal of unused variables is also disabled by default.

autoflake also removes useless pass statements.


To get autoflake, run the below…

Slow-Motion Debug

VS Code extension for debugging code in slow-motion

Slowbug is an VS Code extension for debugging code in slow-motion.

The idea of the VsCode extension is simple. It makes possible to see how the control flows through the code. While debugging a new codebase often, we end up inserting too many breakpoints, and find it tedious to step through and understand the flow when working on a new codebase. Slowbug aims to solve it by executing the code slowly, at the preferred speed, line by line.

Slowbug is agnostic to languages and debug adapters since it issues commands directly to the VS Code workbench.


To install Slowbug go…

The perfect tool to jumpstart your next machine learning project!

Traingenerator is a web app to generate template code for machine learning

To generate custom template code for PyTorch & sklearn, using a simple web UI built with streamlit. traingenerator offers multiple options for preprocessing, model setup, training, and visualization (using Tensorboard or It exports to .py, Jupyter Notebook, or Google Colab.

4-Bit Computing

Powerful neural networks can be trained on smaller devices with faster speeds and less energy.

Deep Learning is a very ineffective energy-consuming process because it requires a large amount of data and ample computational resources which is the reason for more energy consumption. This problem has become worse with the recent development to obtain an accurate model. The models have become larger and been trained on huge data points for days and will not stop since the data might appear in a new format which needs to be again trained.

Deep learning has a large carbon footprint.

There has been researches to who are trying to find algorithms that can use less data for training…

Debugging Python Code

If debugging is the process of removing software bugs, then programming must be the process of putting them in — Edsger Dijkstra

Cyberbrain is a Python debugging solution aiming to free programmers. It visualizes program execution and how each variable changes. Cyberbrain aims to free programmers from debugging. It lets you:

  • Backtrace variable changes.
  • See every state of program execution, including variables’ values
  • Debug loops with confidence.

Never spend hours stepping through a program, let Cyberbrain tell you what happened.

Cyberbrain keeps your workflow unchanged. You run a program (from vscode or command line, both work), and a new panel…

Analyze, Explain, Predict, Working of Machine Learning Models

Python Package to Quickly build an interactive dashboard that explains the inner workings of a fitted machine learning model.

Explainerdashboard is a python library for quickly building interactive dashboards for analyzing and explaining the predictions and workings of (scikit-learn compatible) machine learning models, including xgboost, catboost and lightgbm.

This python package makes it easy to quickly deploy a dashboard web app that explains the workings of a machine learning model. The dashboard provides interactive plots on model performance, feature importances, feature contributions to individual predictions, “what if” analysis, partial dependence plots, SHAP (interaction) values, visualization of individual decision trees, etc.

The library is designed to be modular so that it should be easy to design your own interactive dashboards…


VS Code is the most used and favorite IDE for many programmers

Visual Studio Code combines the simplicity of a code editor with what developers need for their core edit-build-debug cycle. It provides comprehensive code editing, navigation, and understanding support along with lightweight debugging, a rich extensibility model, and lightweight integration with existing tools.

Visual Studio Code is updated with many new features and bug fixes regularly. Below are some of the Vs Code features, which helps in improving the productivity during editing, building or debugging of code.

Format Modified Text

There is a new setting editor.formatOnSaveMode, which makes Format on Save only apply to modified lines or the complete file.

Calm Technology, human-centered design, social design, and anthropology

Calm Technology, a method of smoothly capturing a user’s attention only when necessary, while calmly remaining in the background most of the time.

Attention is the concentration of the mind on a single object or thought, especially one preferentially selected from a complex, with a view to limiting or clarifying receptivity by narrowing the range of stimuli. There is one fundamental truth that demands us to take a new approach to technology it’s the number of alerts which is taking our attention has increased. There is a limited bandwidth for our attention within which all our activity has to be performed. The information technology around us requires as much attention as our current technologies.

The most profound technologies are those that disappear. They…

Dear PyGui

Bloat-free Graphical User Interface for Python with minimal dependencies. DearPyGui is an all-included GUI framework, DearPyGui is as simple as creating a python script.

Dear PyGui is a simple and powerful Python GUI framework to build GUIs using python scripts. Dear Py Gui uses the wrappers of Dear ImGui that simulates a traditional retained-mode GUI, as opposed to Dear ImGui’s immediate mode paradigm.

Dear PyGui is fundamentally different than other Python GUI frameworks

The immediate mode paradigm allows in creating extremely dynamic interfaces. Dear PyGui does not use the native widgets but instead drawn by the computer’s graphics card like PyQt(using Directx11, Metal, and Vulkan rendering APIs).


Explore to understand. “One should use information and logic as a drunkard would use a lamp post – only for support, not for illumination.-Sadhguru”

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store