Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(commands): fix remove_cluster command and add unit tests for BC and area removal #1978

Merged
merged 5 commits into from
Mar 15, 2024

Conversation

laurent-laporte-pro
Copy link
Contributor

Description:

This Pull Request addresses a bug in the remove_cluster command and enhances our test coverage for the management of binding constraints and the removal of areas in studies of versions 7.2 and 8.7.

Changes include:

  1. Bug Fix in remove_cluster command: The command now correctly handles the removal of binding constraints matrices in version 8.7 when a thermal cluster is deleted.

  2. Unit Tests for Binding Constraints: Added new unit tests to verify the correct handling of binding constraints.

  3. Unit Tests for Area Removal: Introduced new unit tests for the removal of areas in studies.

@laurent-laporte-pro laurent-laporte-pro added bug Something isn't working hot back-end labels Mar 15, 2024
@laurent-laporte-pro laurent-laporte-pro added this to the v2.17 milestone Mar 15, 2024
@laurent-laporte-pro laurent-laporte-pro self-assigned this Mar 15, 2024
@laurent-laporte-pro laurent-laporte-pro marked this pull request as draft March 15, 2024 12:37
@laurent-laporte-pro laurent-laporte-pro marked this pull request as ready for review March 15, 2024 16:25
@laurent-laporte-pro
Copy link
Contributor Author

I have added aliases to the parameters of the Binding Constraint (BC) commands:

  • lessTermMatrix,
  • greaterTermMatrix
  • equalTermMatrix.

This way, we can have either snake_case or camelCase.

I also added an integration test in the Thermals to test the deletion of a cluster that is referenced by a binding constraint.

@laurent-laporte-pro laurent-laporte-pro merged commit 7e0c480 into dev Mar 15, 2024
7 checks passed
@laurent-laporte-pro laurent-laporte-pro deleted the bugfix/remove_cluster_from_bc branch March 15, 2024 17:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
back-end bug Something isn't working hot size/L
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants