-
Notifications
You must be signed in to change notification settings - Fork 359
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
[TODO] avoid allotting small number of students last center #13
Comments
The main change is in the block that reassigns the remaining students to Center A or Center B. Instead of iterating over the centers list and checking for the center codes 'A' and 'B', modified the code to directly check if the center codes 'A' and 'B' exist in the centers_remaining_cap dictionary and if they have enough remaining capacity. Here's how the updated code works: The for loop iterates over the center codes 'A' and 'B'. Note: This code assumes that the center codes 'A' and 'B' exist in the centers_remaining_cap dictionary. If you want to handle the case where these center codes are not present, you'll need to add additional checks or modify the code accordingly. |
I would be really excited to work on this issue. Can you please assign it to me. 🙂 |
@ashiishme please feel free to submit a pull request. looking for multiple solutions, so not assigning to a single individual. |
I have the PR opened but it hasn't been reviewed yet. |
School A has 207 students. Current script will
It is undesirable to separate just 7 students. They are reassigned to either Center A or B during manual inspection. Automate this step.
Also refrain from distributing those 7 students among center A and B
ie
Center A - 107 Center B - 100 is preferred over center A - 103, center B - 104
as it results in cleaner symbol number distribution
may chose to use existing MIN_STUDENTS_IN_CENTER parameter
The text was updated successfully, but these errors were encountered: