Add hook for outline layer to PCB class

This commit is contained in:
Chintalagiri Shashank 2019-05-11 04:03:20 +05:30
parent 2601ae8eab
commit 37dfd86368
No known key found for this signature in database
GPG key ID: 19ACD9266B853BD4

View file

@ -94,6 +94,12 @@ class PCB(object):
layer.layer_class in
('top', 'bottom', 'internal')]))
@property
def outline_layer(self):
for layer in self.layers:
if layer.layer_class == 'outline':
return layer
@property
def layer_count(self):
""" Number of *COPPER* layers