[Cython/Reactor] Fix setting reactor name through the constructor

This parameter wasn't being passed from Reactor to ReactorBase
This commit is contained in:
Ray Speth 2015-02-28 00:24:22 +00:00
parent a15cb7d95c
commit ff3a1cc385

View file

@ -179,7 +179,7 @@ cdef class Reactor(ReactorBase):
>>> r3 = Reactor(name='adiabatic_reactor', contents=gas)
"""
super().__init__(contents, **kwargs)
super().__init__(contents, name, **kwargs)
if energy == 'off':
self.energy_enabled = False