Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 5 additions & 2 deletions README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -36,18 +36,21 @@ Features
Installation
------------


**Prerequisites:** Queueing-tool runs on Python 2.7 and 3.3-3.5 and it
requires `networkx <http://networkx.readthedocs.org/en/stable/>`__ and
`numpy <http://www.numpy.org/>`__. If you want to plot, you will need
to install `matplotlib <http://matplotlib.org/>`__ as well.

**Installation**: To install, use:
**Installation**: To install from
`PyPI <https://pypi.python.org/pypi/queueing-tool>`__ use:

.. code:: bash

pip install queueing-tool

If you want to install all optional packages, use:
The above will automatically install networkx and numpy. If you want to install
all optional packages, use:

.. code:: bash

Expand Down
2 changes: 1 addition & 1 deletion VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
1.0.3
1.1.0
2 changes: 1 addition & 1 deletion docs/overview.rst
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,7 @@ specifically, we'll let it be a non-homogeneous Poisson process), with a rate
that's sinusoidal. To set that, run::

>>> rate = lambda t: 25 + 350 * np.sin(np.pi * t / 2)**2
>>> arr_f = lambda t: qt.poisson_random_measure(rate, 375, t)
>>> arr_f = lambda t: qt.poisson_random_measure(t, rate, 375)

Lastly, we need to specify the departure process for each checkout counter. Let's
choose the exponential distribution::
Expand Down
2 changes: 1 addition & 1 deletion examples/example_grocery_store.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@

# Define the parameters for each of the queues
rate = lambda t: 25 + 350 * np.sin(np.pi * t / 2)**2
arr_f = lambda t: qt.poisson_random_measure(rate, 375, t)
arr_f = lambda t: qt.poisson_random_measure(t, rate, 375)
ser_f = lambda t: t + np.random.exponential(0.2 / 2.5)

# Make a mapping between the edge types and the parameters used to make those
Expand Down
2 changes: 1 addition & 1 deletion queueing_tool/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
import queueing_tool.graph as graph

__all__ = []
__version__ = '1.0.3'
__version__ = '1.1.0'

__all__.extend(['__version__'])
__all__.extend(queues.__all__)
Expand Down
2 changes: 2 additions & 0 deletions queueing_tool/network/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,12 +22,14 @@
QueueNetwork.transitions
"""

from queueing_tool.network.priority_queue import PriorityQueue
from queueing_tool.network.queue_network import (
QueueingToolError,
QueueNetwork
)

__all__ = [
'PriorityQueue',
'QueueingToolError',
'QueueNetwork'
]
Loading