fatamorgana/fatamorgana/__init__.py
Jan Petykiewicz 705926d443 Add UnfilledModalError, records.verify_modal(), and .get_*() methods.
The .get_*() methods are used to verify that we aren't reading from a
pattern with un-filled modals.

The GeometryMixin class was also added here and provides some additional
convenience methods: get_xy() to get an (x,y) tuple and
get_layer_tuple() to get a (layer, datatype) tuple.
2020-05-19 00:42:42 -07:00

41 lines
1.2 KiB
Python

"""
fatamorgana
fatamorgana is a python package for reading and writing to the
OASIS layout format. The OASIS format ('.oas') is the successor to
GDSII ('.gds') and boasts
- Additional primitive shapes
- Arbitrary-length integers and fractions
- Extra ways to represent arrays of repeated shapes
- Better support for arbitrary ASCII text data
- More compact data storage format
- Inline compression
fatamorana is written in pure python and only optionally depends on
numpy to speed up reading/writing.
Dependencies:
- Python 3.5 or later
- numpy (optional, faster but no additional functionality)
To get started, try:
```python3
import fatamorgana
help(fatamorgana.OasisLayout)
```
"""
import pathlib
from .main import OasisLayout, Cell, XName
from .basic import NString, AString, Validation, OffsetTable, OffsetEntry, \
EOFError, SignedError, InvalidDataError, InvalidRecordError, \
UnfilledModalError, \
ReuseRepetition, GridRepetition, ArbitraryRepetition
__author__ = 'Jan Petykiewicz'
with open(pathlib.Path(__file__).parent / 'VERSION', 'r') as f:
__version__ = f.read().strip()
version = __version__