Commit ea889a83 authored by Sean Leavey's avatar Sean Leavey

Restore ABCMeta inheritance (bug with Parameter Cython header fixed)

parent 1510dd3c
import abc
import numpy as np
from finesse.components.general import Connector
from finesse.utilities.misc import calltracker
class Surface(Connector):
"""Abstract optical surface interface providing an object with common properties for \
:class:`.Mirror` and :class:`.Beamsplitter` to inherit from.
class Surface(Connector, metaclass=abc.ABCMeta):
"""Abstract optical surface interface
This provides an object with common properties for :class:`.Mirror` and :class:`.Beamsplitter`
to inherit from.
Parameters
----------
......
......@@ -2,6 +2,8 @@
Top-level objects which specific detectors should inherit from.
"""
import abc
import numpy as np
from finesse.element import ModelElement
......@@ -9,7 +11,7 @@ from finesse.components import Node
from finesse.utilities import make_modes, insert_modes
class Detector(ModelElement):
class Detector(ModelElement, metaclass=abc.ABCMeta):
"""Abstract representation of a component that produces a numerical output.
User detector classes should subclass this class. The simulation will then generate a dictionary
......
......@@ -21,7 +21,7 @@ cdef class Parameter:
Rebuild __rebuild_flag
bint __is_tunable
object __weakref__
type __component_type
object __component_type
public object __component
public bint _locked
readonly ParameterState state
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment