Skip to content

Commit

Permalink
Call-super().__init__()-for-Simulator-classes
Browse files Browse the repository at this point in the history
  • Loading branch information
schmoelder committed Jan 28, 2025
1 parent 1ddfd49 commit 9f8ccfc
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 2 deletions.
7 changes: 6 additions & 1 deletion CADETProcess/simulator/cadetAdapter.py
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,12 @@ class Cadet(SimulatorBase):
use_dll = Bool(default=False)
_force_constant_flow_rate = False

def __init__(self, install_path=None, temp_dir=None, *args, **kwargs):
def __init__(
self,
install_path=None,
temp_dir=None,
*args, **kwargs
):
super().__init__(*args, **kwargs)

if install_path is None:
Expand Down
4 changes: 3 additions & 1 deletion CADETProcess/simulator/simulator.py
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,9 @@ class SimulatorBase(Structure):
n_cycles_max = UnsignedInteger(default=100)
raise_exception_on_max_cycles = Bool(default=False)

def __init__(self, stationarity_evaluator=None):
def __init__(self, stationarity_evaluator=None, *args, **kwargs):
super().__init__(*args, **kwargs)

self.logger = get_logger('Simulation')

if stationarity_evaluator is None:
Expand Down

0 comments on commit 9f8ccfc

Please sign in to comment.