diff options
author | jaseg <git@jaseg.de> | 2021-12-29 19:58:20 +0100 |
---|---|---|
committer | jaseg <git@jaseg.de> | 2021-12-29 19:58:20 +0100 |
commit | 3fb26e6940b5ae752308d8a33f2608d266795153 (patch) | |
tree | a563b0cf512e5661b2a450ebf73eafe655ac18b2 /gerbonara/gerber/ipc356.py | |
parent | 30dabef9ee83021067957854187b9bbf245c14cf (diff) | |
download | gerbonara-3fb26e6940b5ae752308d8a33f2608d266795153.tar.gz gerbonara-3fb26e6940b5ae752308d8a33f2608d266795153.tar.bz2 gerbonara-3fb26e6940b5ae752308d8a33f2608d266795153.zip |
Basic round-trip works
Diffstat (limited to 'gerbonara/gerber/ipc356.py')
-rw-r--r-- | gerbonara/gerber/ipc356.py | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/gerbonara/gerber/ipc356.py b/gerbonara/gerber/ipc356.py index 55c079a..23382e3 100644 --- a/gerbonara/gerber/ipc356.py +++ b/gerbonara/gerber/ipc356.py @@ -16,10 +16,10 @@ # See the License for the specific language governing permissions and # limitations under the License. +from dataclasses import dataclass import math import re from .cam import CamFile, FileSettings -from .primitives import TestRecord # Net Name Variables _NNAME = re.compile(r'^NNAME\d+$') @@ -50,6 +50,11 @@ def read(filename): # File object should use settings from source file by default. return IPCNetlist.from_file(filename) +@dataclass +class TestRecord: + position : [float] + net_name : str + layer : str def loads(data, filename=None): """ Generate an IPCNetlist object from IPC-D-356 data in memory |