You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
masque/masque
Jan Petykiewicz fff20b3da9 Avoid generating a container if only a single port is passed 1 year ago
..
builder Avoid generating a container if only a single port is passed 1 year ago
file round().astype() -> rint(...) 1 year ago
library fix wrong var name 2 years ago
shapes round().astype() -> rint(...) 1 year ago
traits add get_bounds_nonempty 2 years ago
utils add utils.vertices.poly_contains_points 2 years ago
LICENSE.md Move from setuputils and setup.py to hatch and pyproject.toml 1 year ago
README.md Move from setuputils and setup.py to hatch and pyproject.toml 1 year ago
__init__.py Move from setuputils and setup.py to hatch and pyproject.toml 1 year ago
error.py add DeviceLibraryError 2 years ago
label.py Avoid calling new.unlock() in __deepcopy__() 2 years ago
pattern.py fix scaling for objects with repetitions 2 years ago
py.typed add py.typed to enable type checking for downstream 4 years ago
repetition.py Add an alternate constructor for axis-aligned 2D grids 1 year ago
subpattern.py Avoid calling new.unlock() in __deepcopy__() 2 years ago
utils.py Use ArrayLike and NDArray wherever possible. Some type fixes and some related corner cases 2 years ago

README.md

Masque README

Masque is a Python module for designing lithography masks.

The general idea is to implement something resembling the GDSII file-format, but with some vectorized element types (eg. circles, not just polygons), better support for E-beam doses, and the ability to output to multiple formats.

Installation

Requirements:

  • python >= 3.8
  • numpy
  • klamath (used for gdsii i/o and library management)
  • matplotlib (optional, used for visualization functions and text)
  • ezdxf (optional, used for dxf i/o)
  • fatamorgana (optional, used for oasis i/o)
  • svgwrite (optional, used for svg output)
  • freetype (optional, used for text)

Install with pip:

pip3 install 'masque[visualization,oasis,dxf,svg,text]'

Alternatively, install from git

pip3 install git+https://mpxd.net/code/jan/masque.git@release

Translation

  • Pattern: OASIS or GDS "Cell", DXF "Block"
  • SubPattern: GDS "AREF/SREF", OASIS "Placement"
  • Shape: OASIS or GDS "Geometry element", DXF "LWPolyline" or "Polyline"
  • repetition: OASIS "repetition". GDS "AREF" is a SubPattern combined with a Grid repetition.
  • Label: OASIS, GDS, DXF "Text".
  • annotation: OASIS or GDS "property"

TODO

  • Better interface for polygon operations (e.g. with pyclipper)
    • de-embedding
    • boolean ops
  • Construct polygons from bitmap using skimage.find_contours
  • Deal with shape repetitions for dxf, svg