Valen Yamamoto

CS Student @ UCI

Welcome to my portfolio!


Hi! I am a computer science student at the University of California, Irvine specializing in machine learning, robotics algorithms, and optimizing parallel algorithms for high performance environments

Python Scripts for Parsing SPICE Output: A Workshop

Github Repository

Python is particularly useful for writing quick scripts. I find myself reaching for Python whenever I need to parse output into more readable/processable forms like csv files or pandas DataFrames. Engineering students at UCI don’t spend a lot of time learning Python, so I thought this would be a particularly useful exercise.

This workshop goes through a program to parse PSPICE output and allows the user to either output a csv version of the output or to pick out particular components with voltages or currents above a specified threshold. This program was originally written to parse the provided output for components with a voltage greater than 3.6 V, indicating a breakdown voltage.

The input to the program is a threshold voltage or current and a SPICE output file, which looks something like this:

SPICE Output

The output is printed to the terminal in csv format.

SPICE CSV

The key Python concepts covered in this workshop are as follows:

  • Reading files and iterating over files as generators
  • Splitting, concatenating, and regex for strings
  • f-strings for formatting output
  • argparse for including command line options

A Google Colab template for participants to follow along with can be found at the following:

Recent

Linux Dotfiles Workshop

Github Repository Everyone in engineering has to use a Linux terminal once in a while. Why not customize your experience? This workshop was conceived as a fast, easy workshop to run during midterms while also giving useful information on how to ……

linuxIEEE Continue
Earlier

Deep Learning Framework in C++

Github Repository Ever since I started learning PyTorch, I have been fascinated by the automatic gradient feature. In order to further understand it, I decided I would try to write my own version. At the time, I was also taking a C++ class, so I ……

Machine LearningC++ Continue