Skip to content

Constructors of extension types need consistent signature and arity in subclasses #186

Open
markflorisson opened this Issue Apr 5, 2013 · 1 comment

2 participants

@markflorisson

See also https://groups.google.com/a/continuum.io/forum/?hl=en&fromgroups=#!topic/numba-users/8M3Y_-MP8rk

@jit
class CJIT( object ):
    """ Basic class for all components that are part of the structure. """
    @void(double, double)
    def __init__(self, mi, ml):
        # Unit limits
        self.maxInput          = mi     # Maximal input energy
        self.maxLoad           = ml     # Maximal stored energy 


@jit
class Intermediate(CJIT):
    @void(double)
    def __init__(self, ml):
        CJIT.__init__(self, 1.0, ml)

Thanks to Frank Sehnke.

@sklam
sklam commented Aug 26, 2014

Need to revisit as we are redoing the JIT classes.

(Notify @seibert)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.