Skip to content

Commit

Permalink
fixed def uo test
Browse files Browse the repository at this point in the history
state is now cake and not retentate
removed some empty lines
  • Loading branch information
daklauss committed Aug 14, 2024
1 parent ee99017 commit b8ec415
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 9 deletions.
2 changes: 1 addition & 1 deletion CADETPythonSimulator/unit_operation.py
Original file line number Diff line number Diff line change
Expand Up @@ -327,7 +327,7 @@ def get_outlet_state(
def get_outlet_state_flat(
self,
unit_port_index: int
) -> NoReturn:
) -> dict[str, np.ndarray]:
"""
Get the state of the unit operation outlet for a given port.
Expand Down
10 changes: 3 additions & 7 deletions tests/test_rejection.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,6 @@
)








TestCaseCutof = {
"model": StepCutOff,
"model_param": {
Expand All @@ -30,7 +24,9 @@

class TestRejection():
def test_get_rejection(self, parameters):

"""
Test to check wheter the get_rejection function works as intended
"""
model = parameters["model"](**parameters["model_param"])

solution = [model.get_rejection(weight) for weight in parameters["weights"]]
Expand Down
2 changes: 1 addition & 1 deletion tests/test_unit_operation.py
Original file line number Diff line number Diff line change
Expand Up @@ -189,7 +189,7 @@ def __init__(self,
'n_outlet_ports': 1,
'n_dof': 10,
'states': {
'retentate': [0., 1., 2., 3., 4., 5.],
'cake': [0., 1., 2., 3., 4., 5.],
'permeate': [6., 7., 8., 9.],
},
'inlet_state': {
Expand Down

0 comments on commit b8ec415

Please sign in to comment.