python

Python stuff

This is a list of some of the projects in Python. It includes from small scripts to medium size modules.

dcel

This package implements a doubly connected edge list and a 2D polygonal map with basic functionality for saving/reading from file and plotting postscript and eps figures of the 2D maps. Source code: here.

Everyday python

  • pydt: utilities for extracting and modifying numerical data from files. It contains the package dtt with input-output utilities and basic clipping, data shifting and normalization and column extraction methods, and the pydt script for command line data modification.
  • quiz: This is a small class that takes a dictionary with keys/answers and returns random simple questions and multiple choice questions. It contains two simple functions that convert csv files into dictionaries and viceversa.

Materials Science

  • xformat: Script for transforming XRD .x00 files into two column data files.
  • xrapy: Set of functions to determine plane distances and angles in single crystals.
  • pyrel: A reflectometry and ellipsometry module. It calculates the p and s components of the reflected and transmitted field in a multilayer system. From these, the ellipsometric angles can be determined. Layers can be defined using the most common models, such as Cauchy, Lorentz, Sellmeier or Tauc-Lorenz. In the Lorentz case, it allows for an arbitrary number of oscillators.

Comments are closed.