diff --git a/CADETProcess/simulator/cadetAdapter.py b/CADETProcess/simulator/cadetAdapter.py index 5d9799dd..f9ab2cd8 100644 --- a/CADETProcess/simulator/cadetAdapter.py +++ b/CADETProcess/simulator/cadetAdapter.py @@ -91,7 +91,7 @@ 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, docker_container=None, *args, **kwargs): super().__init__(*args, **kwargs) if install_path is None: @@ -99,6 +99,8 @@ def __init__(self, install_path=None, temp_dir=None, *args, **kwargs): else: self.install_path = install_path + self.docker_container = docker_container + self.model_solver_parameters = ModelSolverParameters() self.solver_parameters = SolverParameters() self.time_integrator_parameters = SolverTimeIntegratorParameters() @@ -298,7 +300,7 @@ def get_cadet_version(self) -> tuple[str, str]: raise RuntimeError(f"Command execution failed: {e}") def get_new_cadet_instance(self): - cadet = CadetAPI(install_path=self.install_path, use_dll=self.use_dll) + cadet = CadetAPI(install_path=self.install_path, use_dll=self.use_dll, docker_container=self.docker_container) return cadet def save_to_h5(self, process, file_path):