Coder Social home page Coder Social logo

rosettacircuit's Introduction

RosettaCircuit

First program in Python

This program read an "ASCII circuit", a text file representing an electrical circuit, and outputs a LaTeX file using CircuiTikz. There are plans to also output SPICE configuration files.

Example:

We want to go from this:

    V1--R1---+---R2--+
             |       |
             |       |    
             m       |    
              OPAMPo-+--V0
             p
             |
             G2

to this

Inverting Op Amp

Example usage

From terminal

cd project_folder/
python3 src/rosetta.py Test1

Status

The parser of the ASCII graph is finished (apart from the occasional bug) and it creates an adjacency list of classes Component, which in turn contains the list of other components connected to them. Now we have to write down this list in CircuiTikz or SPICE format.

As for now, the code is quite messy and needs to be refactored (which was to be expected since i made this project also to learn best Python practices).

rosettacircuit's People

Contributors

fisica2014-ff avatar f-forcher avatar

Stargazers

 avatar Aakash Gajjar avatar  avatar

Watchers

James Cloos avatar  avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.