def __init__(self, backend, n_sd=0): Core.__init__(self, n_sd, backend) self.core = self self.environment = DummyEnvironment() self.environment.register(self) self.req_attr = {'n': Multiplicities(self), 'cell id': CellID(self)} self.particles = None
def __init__(self, backend=None, n_sd=0): backend = backend or Default() Core.__init__(self, n_sd, backend) self.core = self self.environment = DummyEnvironment() self.environment.register(self) self.req_attr = {'n': Multiplicities(self), 'cell id': CellID(self)} self.state = None
def __init__(self, backend, n_sd=0, formulae=None): if formulae is None: formulae = Formulae() Core.__init__(self, n_sd, backend(formulae)) self.core = self self.environment = DummyEnvironment() self.environment.register(self) self.req_attr = {'n': Multiplicities(self), 'cell id': CellID(self)} self.particles = None
def __init__(self, n_sd, backend): self.core = Core(n_sd, backend) self.req_attr = { 'n': Multiplicities(self), 'volume': Volume(self), 'cell id': CellID(self) } self.aerosol_radius_threshold = 0 self.condensation_params = None
def __init__(self, n_sd, backend, formulae=Formulae()): assert inspect.isclass(backend) self.formulae = formulae self.core = Core(n_sd, backend(formulae)) self.req_attr = { 'n': Multiplicities(self), 'volume': Volume(self), 'cell id': CellID(self) } self.aerosol_radius_threshold = 0 self.condensation_params = None