Python reader for OASIS format
Vous ne pouvez pas sélectionner plus de 25 sujets Les noms de sujets doivent commencer par une lettre ou un nombre, peuvent contenir des tirets ('-') et peuvent comporter jusqu'à 35 caractères.
Go to file
Henk van der Laak 203a520770 Read type0,1 pointlist correctly il y a 5 ans
fatamorgana Read type0,1 pointlist correctly il y a 5 ans
.gitignore Ignore build directories in git il y a 6 ans
LICENSE.md initial commit il y a 7 ans
MANIFEST.in add license and readme to manifest il y a 7 ans
README.md move code to new location il y a 6 ans
setup.py Use version number from module in setup.py il y a 6 ans

README.md

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)