diff --git a/.github/workflows/pipeline.yml b/.github/workflows/pipeline.yml index 0db3eaf..03d9d8a 100644 --- a/.github/workflows/pipeline.yml +++ b/.github/workflows/pipeline.yml @@ -13,7 +13,7 @@ on: jobs: test-job: runs-on: ubuntu-latest - + defaults: run: shell: bash -l {0} @@ -23,7 +23,7 @@ jobs: env: CONDA_FILE: environment.yml - + steps: - uses: actions/checkout@v4 - name: Set up Python ${{ matrix.python-version }} diff --git a/CADETPythonSimulator/unit_operation.py b/CADETPythonSimulator/unit_operation.py index e939cca..1a2a1bd 100644 --- a/CADETPythonSimulator/unit_operation.py +++ b/CADETPythonSimulator/unit_operation.py @@ -488,8 +488,6 @@ def compute_residual( self.residuals['outlet']['c_poly'] = self.states['outlet']['c_poly'] self.residuals['outlet']['viscosity'] = self.states['outlet']['viscosity'] - self.residuals['outlet']['c_poly'] = self.states['outlet']['c_poly'] - self.residuals['outlet']['viscosity'] = self.states['outlet']['viscosity'] class Outlet(UnitOperationBase): """System outlet.""" @@ -544,6 +542,7 @@ class Cstr(UnitOperationBase): } _state_structures = ['inlet', 'bulk'] + def compute_residual( self, t: float,