Skip to content

Commit b8ec415

Browse files
committed
fixed def uo test
state is now cake and not retentate removed some empty lines
1 parent ee99017 commit b8ec415

File tree

3 files changed

+5
-9
lines changed

3 files changed

+5
-9
lines changed

CADETPythonSimulator/unit_operation.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -327,7 +327,7 @@ def get_outlet_state(
327327
def get_outlet_state_flat(
328328
self,
329329
unit_port_index: int
330-
) -> NoReturn:
330+
) -> dict[str, np.ndarray]:
331331
"""
332332
Get the state of the unit operation outlet for a given port.
333333

tests/test_rejection.py

+3-7
Original file line numberDiff line numberDiff line change
@@ -6,12 +6,6 @@
66
)
77

88

9-
10-
11-
12-
13-
14-
159
TestCaseCutof = {
1610
"model": StepCutOff,
1711
"model_param": {
@@ -30,7 +24,9 @@
3024

3125
class TestRejection():
3226
def test_get_rejection(self, parameters):
33-
27+
"""
28+
Test to check wheter the get_rejection function works as intended
29+
"""
3430
model = parameters["model"](**parameters["model_param"])
3531

3632
solution = [model.get_rejection(weight) for weight in parameters["weights"]]

tests/test_unit_operation.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -189,7 +189,7 @@ def __init__(self,
189189
'n_outlet_ports': 1,
190190
'n_dof': 10,
191191
'states': {
192-
'retentate': [0., 1., 2., 3., 4., 5.],
192+
'cake': [0., 1., 2., 3., 4., 5.],
193193
'permeate': [6., 7., 8., 9.],
194194
},
195195
'inlet_state': {

0 commit comments

Comments
 (0)