Closed MichalisPanayides closed 2 years ago
Hey @geraintpalmer. Let me know what you think about these changes 😄
If helpful I can add a subsection on the documentation for server dependent distributions (Probably here)
Hi @11michalis11 this looks good, I'm happy with the change.
An example in the documentation about server dependent distributions would be really nice. I think it would be better suited here: https://ciw.readthedocs.io/en/latest/Guides/behaviour/index.html Could you write up an example?
I can merge them at the same time then and draft a new release :)
Thanks for the work!
This change in the source code can enable the creation of a custom distribution that is server dependent. Currently when trying to access
ind.server
from a custom distribution class (that inherits fromciw.dists.Distribution
) the outcome isFalse
. That is because the server attaches to the individual after the service time is calculated.The purpose of this PR is to change the order that the
attach_server()
method and theget_service_time()
method are executed.