Skip to content

New algoritm for default selection #189

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

Merged
merged 16 commits into from
Sep 30, 2024
Merged

New algoritm for default selection #189

merged 16 commits into from
Sep 30, 2024

Conversation

likp
Copy link
Contributor

@likp likp commented Sep 6, 2024

This PR contains changes to the default selection algoritm according to the new version of it.
It ALso contains some refactoring of the Problem class that has men moved to a utility class thereby removing some code duplications.

likp added 16 commits September 3, 2024 09:24
The initialization of the `selections` list is now conditional based on the presence of `contents` and `time` variables. Replaced commented-out code with active code to verify valid selections and check the number of cells selected, returning appropriate problems if checks fail. Set `problem` to `null` if all checks pass and return the `selections` array. Removed `throw new NotImplementedException();` indicating the method is now fully implemented. Streamlined the loop processing non-mandatory classification variables by removing the commented-out `foreach` loop.
@likp likp requested review from MikaelNordberg and runejo and removed request for MikaelNordberg September 27, 2024 06:21
@likp likp marked this pull request as ready for review September 27, 2024 06:24
Copy link
Contributor

@MikaelNordberg MikaelNordberg left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice work! Looks good

@likp likp merged commit 4ee2d08 into main Sep 30, 2024
7 checks passed
@JohannesFinsveen JohannesFinsveen deleted the feature/new_algorithm branch January 21, 2025 12:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants