Profile

Cover photo
296 followers|57,509 views
AboutPostsPhotosVideos

Stream

SimPy

Shared publicly  - 
 
We just released SimPy 3.0.7.

https://pypi.python.org/pypi/simpy/3.0.7

Here's a quick summary of the changes:

- [FIX] State of resources and requests were inconsistent before the request has been processed (`issue #62 <https://bitbucket.org/simpy/simpy/issue/62>`__).
- [FIX] Empty conditions were never triggered (regression in 3.0.6, `issue #63 <https://bitbucket.org/simpy/simpy/issue/63>`__).
- [FIX] ``Environment.run()`` will fail if the until event does not get triggered (`issue #64 <https://bitbucket.org/simpy/simpy/issue/64>`__).
- [FIX] Callback modification during event processing is now prohibited (thanks to Andreas Beham).
Event discrete, process based simulation for Python.
2
1
Christoph Körner's profile photo
Add a comment...

SimPy

Shared publicly  - 
6
1
Stefan Scherfke's profile photo
Add a comment...

SimPy

Shared publicly  - 
 
Just wanna let you know that SimPy (of course) also runs on the shiny new PyPy3. :-)

  $ tox
  py27: commands succeeded
  py32: commands succeeded
  py33: commands succeeded
  py34: commands succeeded
  pypy: commands succeeded
  pypy3: commands succeeded
  congratulations :)
1
Maxime Chéramy's profile photoSimPy's profile photo
2 comments
SimPy
 
No pypy vs. pypy3 benchmarks yet, but pypy is faster than cpython if your simulation is not too small (e.g., the tests run slower on pypy than on cpython because we use a lot of small processes that only run once).
Add a comment...

SimPy

Shared publicly  - 
 
Hi all,

we just released SimPy 3.0.5:

- [CHANGE] Move interruption and all of the safety checks into a new event (`pull request #30`__)
- [FIX] ``FilterStore.get()`` now behaves correctly (`issue #49`__).
- [FIX] Documentation improvements.

__ https://bitbucket.org/simpy/simpy/pull-request/30
__ https://bitbucket.org/simpy/simpy/issue/49


Everyone using the FilterStore should upgrade to this release, because it really was broken before. ;-)
Event discrete, process based simulation for Python.
2
Add a comment...

SimPy

Shared publicly  - 
 
Hi all,

we just released SimPy 3.0.4. These are the changes:

- [NEW] Verified, that SimPy works on Python 3.4.
- [NEW] Guide to SimPy events
- [CHANGE] The result dictionary for condition events (``AllOF`` / ``&`` and
 ``AnyOf`` / ``|``) now is an OrderedDict sorted in the same way as the original events list.
- [CHANGE] Condition events now also except processed events.
- [FIX] ``Resource.request()`` directly after ``Resource.release()`` no longer successful. The process now has to wait as supposed to.
- [FIX] ``Event.fail()`` now accept all exceptions derived from
 ``BaseException`` instead of only ``Exception``.
Event discrete, process based simulation for Python.
2
Add a comment...

SimPy

Shared publicly  - 
 
Wow. First and last paragraph of the mail. Best compliment ever!

“I came across SimPy a couple of days ago and love it very much. The simplicity and expressive capabilities are unparalleled!

[…]

Overall, I must say I have never seen something similar to SimPy. This framework allows to write simulation models in such a clean style that a graphical editor becomes obsolete. Models expressed with SimPy are pure beauty!” —Andreas Beham
2
Add a comment...
Have them in circles
296 people
Josha Inglis's profile photo
Andrew Heiss's profile photo
Colin Taylor's profile photo
陆云波's profile photo
Rahul Singh's profile photo
Rusbel Rosales Luna's profile photo
陆云波's profile photo
Paul Liston's profile photo
Giancarlo Zaccone's profile photo

SimPy

Shared publicly  - 
 
We just released SimPy 3.0.6!

https://pypi.python.org/pypi/simpy/3.0.6

Here's a quick summary of the changes:

- [NEW] Guide to SimPy resources.
- [CHANGE] Improve performance of condition events.
- [CHANGE] Improve performance of filter store (thanks to Christoph Körner).
- [CHANGE] Exception tracebacks are now more compact.
- [FIX] ``AllOf`` conditions handle already processed events correctly (`issue #52 <https://bitbucket.org/simpy/simpy/issue/52>`__).
- [FIX] Add ``sync()`` to ``RealtimeEnvironment`` to reset its internal wall-clock reference time (`issue #42 <https://bitbucket.org/simpy/simpy/issue/42>`__).
- [FIX] Only send copies of exceptions into processes to prevent traceback modifications.
- [FIX] Documentation improvements.
Event discrete, process based simulation for Python.
3
1
tui yer's profile photo
Add a comment...

SimPy

Shared publicly  - 
 
There is now a guide to real-time simulations.
Real-time simulations¶. Sometimes, you might not want to perform a simulation as fast as possible but synchronous to the wall-clock time. This kind of simulation is also called real-time simulation. Real-time simulations may be necessary. if you have hardware-in-the-loop,; if there is human ...
1
Add a comment...

SimPy

Shared publicly  - 
 
There is now a guide about shared resources in SimPy.
Shared Resources¶. Shared resources are another way to model Process Interaction. They form a congestion point where processes queue up in order to use them. SimPy defines three categories of resources: Resources – Resources that can be used by a limited number of processes at a time (e.g., ...
1
1
Stefan Scherfke's profile photo
Add a comment...

SimPy

Shared publicly  - 
 
And the next one: Topical guide about process interaction. :-)
Sleep until woken up¶. Imagine you want to model an electric vehicle with an intelligent battery-charging controller. While the vehicle is driving, the controller can be passive but needs to be reactivate once the vehicle is connected to the power grid in order to charge the battery.
1
Add a comment...

SimPy

Shared publicly  - 
 
New guide to SimPy events.
Event basics¶. SimPy events are very similar – if not identical — to deferreds, futures or promises. Instances of the class Event are used to describe any kind of events. Events can be in one of the following states. An event. might happen (not triggered),; is going to happen (triggered) or ...
2
1
Stefan Scherfke's profile photo
Add a comment...

SimPy

Shared publicly  - 
 
SimPy 3.0.3 has been released. It includes an improved documentation and fixes
two issues for Windows users (see https://pypi.python.org/pypi/simpy/3.0.3/#changelog-for-simpy for details).
Event discrete, process based simulation for Python.
5
1
Stefan Scherfke's profile photo
Add a comment...
People
Have them in circles
296 people
Josha Inglis's profile photo
Andrew Heiss's profile photo
Colin Taylor's profile photo
陆云波's profile photo
Rahul Singh's profile photo
Rusbel Rosales Luna's profile photo
陆云波's profile photo
Paul Liston's profile photo
Giancarlo Zaccone's profile photo
Story
Tagline
Event-discrete, process-based simulation for Python.
Introduction

SimPy is a process-based discrete-event simulation language based on standard Python and released under the GNU LGPL.

It provides the modeller with components of a simulation model. These include processes for active components like customers, messages and vehicles as well as resources for passive components that form limited capacity congestion points (like servers, checkout counters and tunnels). It also provides monitor variables to aid in gathering statistics.