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

Server dependent #184

Merged
merged 10 commits into from
Dec 17, 2021
Merged

Server dependent #184

merged 10 commits into from
Dec 17, 2021

Conversation

geraintpalmer
Copy link
Member

@11michalis11 if you could have a quick look?

MichalisPanayides and others added 8 commits December 10, 2021 11:54
Changes to attach_server() method:
   - Remove the line that updates the service_end_date for the server.
      It is removed because we want to do that after get_service_time
      is ran for the individual.

Changes to begin_service_if_possible_accept() method:
   - Call attach_server method before getting indvidual's service time
   - Update server's next_end_service_date at the last line only if the
      number of servers are not infinite. This was initially done in the
      attach_server method.
   - Update docstring
Call attach_server() before get_service_time() and update the server's
next_end_service_date attribute for these methods:
   - begin_interrupted_individuals_service
   - begin_service_if_possible_change_shift
   - begin_service_if_possible_release
…_before_generating_service_rate

Attach server to individual before calculating the service time
@coveralls
Copy link

coveralls commented Dec 17, 2021

Coverage Status

Coverage remained the same at 100.0% when pulling e45edae on server-dependent into 88107ca on master.

@MichalisPanayides
Copy link
Contributor

@geraintpalmer Looks great 👍

@geraintpalmer geraintpalmer merged commit 8a84828 into master Dec 17, 2021
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.

3 participants