Tag Archives: python

The Stoner Python Package

The Stoner Python Package is an ambitious project by the Leeds Condensed Matter Physics Group. It brings together various existing scientific python packages for numerical computing and data analysis, and introduces its own classes and methods for analysis and manipulation. The idea behind the code seems a sensible one: standardise simple coding tasks to make… Read More »

Trapezoidal Decomposition of Polygons in Python

Trapezoidal Decomposition Trapezoidal decomposition of polygons involves breaking a polygon into a series of smaller trapezoids. I’ve been working on a project – gds2ecp – to decompose lithography design files into compound shapes that can be written by electron beam lithography. I was sure that there would be an existing library to do the polygon… Read More »

How to install whl files in Anaconda

Anaconda whl Install The whl format is a special zip format for Python packages. These are Anaconda whl install instructions. Here’s how to install a whl package in the Anaconda Python distribution from Continuum Analytics. Download the ‘wheel’ Find and download your whl file. In this example I’m going to be installing the ‘Shapely’ geometry… Read More »

How to Find the Concave Hull in Python

How to Find the Concave Hull in Python The Python module Shapely has a built in function for determining the convex hull, but for determining the concave hull (or alpha shape), you have to do a bit more work. Thankfully a few people on the internet have already done much of the work in determining… Read More »