Python reader for OASIS format
Go to file
2019-09-08 11:25:42 +02:00
fatamorgana Read type0,1 pointlist correctly 2019-09-08 11:25:42 +02:00
.gitignore Ignore build directories in git 2018-07-21 14:15:50 -07:00
LICENSE.md initial commit 2017-09-18 03:01:48 -07:00
MANIFEST.in add license and readme to manifest 2017-09-18 03:08:48 -07:00
README.md move code to new location 2018-01-15 22:30:58 -08:00
setup.py Use version number from module in setup.py 2018-07-27 11:05:42 -07:00

fatamorgana

fatamorgana is a Python package for reading and writing OASIS format layout files.

Homepage: https://mpxd.net/code/jan/fatamorgana

Capabilities:

  • This package is a work-in-progress and is largely untested -- it works for the tasks I usually use it for, but I can't guarantee I've even tried the features you happen to use! Use at your own risk!
  • Interfaces and datastructures are subject to change!
  • That said the following work for me:
    • polygons
    • layer info
    • cell names
    • compressed blocks
    • basic property I/O

Installation

Dependencies:

  • python 3.5 or newer
  • (optional) numpy

Install with pip from PyPi (preferred):

pip install fatamorgana

Install directly from git repository:

pip install git+https://mpxd.net/code/jan/fatamorgana.git@release

Documentation

Most functions and classes are documented inline.

To read the inline help,

import fatamorgana
help(fatamorgana.OasisLayout)

The documentation is currently very sparse and I expect to improve it whenever possible!

Examples

Read an OASIS file and write it back out:

    import fatamorgana

    with open('test.oas', 'rb') as f:
        layout = fatamorgana.OasisLayout.read(f)
    
    with open('test_write.oas', 'wb') as f:
        layout.write(f)