Checking for compatibility with SimPy 4
Closed this issue · 1 comments
eileen-kuehn commented
SimPy came up with version 4 around 2 months ago. There were some changes, most importantly they now only work with Python 3.6+. Further, the following changes are mentioned in the documentation:
BaseEnvironment
has been dropped,Environment
should be used instead- Returning from Process generators now by
return
keyword: usage ofEnvironment.exit(value)
andraise StopProcess(value)
should be replaced byreturn
Source: https://simpy.readthedocs.io/en/latest/topical_guides/porting_from_simpy3.html
We should double check if everything works as expected.
maxfischer2781 commented
To map what we currently have in usim
to SimPy 4.0:
-
We never added
BaseEnvironment
. It is not listed as unsupported in the docs either. Nothing to do. -
We do have
Environment.exit
andStopProcess
. Both are listed in the docs as well. We natively supportreturn
already. Need to remove bothexit
andStopProcess
.