make section comments more prominent
This commit is contained in:
parent
a440f2e256
commit
6b09fc0c20
@ -56,7 +56,9 @@ class Shape(metaclass=ABCMeta):
|
|||||||
object.__setattr__(new, name, getattr(self, name))
|
object.__setattr__(new, name, getattr(self, name))
|
||||||
return new
|
return new
|
||||||
|
|
||||||
# --- Abstract methods
|
'''
|
||||||
|
--- Abstract methods
|
||||||
|
'''
|
||||||
@abstractmethod
|
@abstractmethod
|
||||||
def to_polygons(self,
|
def to_polygons(self,
|
||||||
num_vertices: Optional[int] = None,
|
num_vertices: Optional[int] = None,
|
||||||
@ -148,7 +150,9 @@ class Shape(metaclass=ABCMeta):
|
|||||||
"""
|
"""
|
||||||
pass
|
pass
|
||||||
|
|
||||||
# ---- Non-abstract properties
|
'''
|
||||||
|
---- Non-abstract properties
|
||||||
|
'''
|
||||||
# offset property
|
# offset property
|
||||||
@property
|
@property
|
||||||
def offset(self) -> numpy.ndarray:
|
def offset(self) -> numpy.ndarray:
|
||||||
@ -194,7 +198,9 @@ class Shape(metaclass=ABCMeta):
|
|||||||
raise PatternError('Dose must be non-negative')
|
raise PatternError('Dose must be non-negative')
|
||||||
self._dose = val
|
self._dose = val
|
||||||
|
|
||||||
# ---- Non-abstract methods
|
'''
|
||||||
|
---- Non-abstract methods
|
||||||
|
'''
|
||||||
def copy(self: T) -> T:
|
def copy(self: T) -> T:
|
||||||
"""
|
"""
|
||||||
Returns a deep copy of the shape.
|
Returns a deep copy of the shape.
|
||||||
|
Loading…
Reference in New Issue
Block a user