Salabim

Latest version: v25.0.8

Safety actively analyzes 723400 Python packages for vulnerabilities to keep your Python projects secure.

Scan your dependencies

Page 17 of 28

2.3.2.6

===========================

Bug fix
-------
Under Python 2.7 autoscaling histogram sometimes did result into a TypeError. Fixed.

The wrong line number was displayed when tracing request honor and request wait. Fixed.

2.3.2.5

===========================

New functionality
-----------------
The functionality to print to another file rather than stdout in all methods
print_histogram()
print_histograms()
print_statistics()
print_info()
as introduced in version 2.3.2.4 has been changed into a more logical way.

Now each of these methods has an additional parameter 'file' which can be used
to direct the output to that file. If file is omitted, the output goes to stdout.
If as_str is True, the methods always return as a string rather than writing to a file.

Example:
q=sim.Queue(name='queue')
with open('test.txt', 'w') as f:
q.print_statistics(file=f)

print(q.print_info(as_str=True))

Bug fixes
---------
A bug when Pillow (PIL) was not installed (correctly) and running without animation fixed.

2.3.2.4

===========================
New functionality
-----------------
The as_str parameter in the methods
print_histogram()
print_histograms()
print_statistics()
print_info()
can now also be used to direct the output to the file as mentioned in as_str, like in
q=sim.Queue(name='queue')
with open('test.txt', 'w') as f:
q.print_statistics(as_str=f)
If as_str is True, the output will be returned as a string.
If as_str is False (the default for all methods), the output will go to stdout.

Bug fixes
---------
Problem when printing 'values' histograms fixed.

Bug with drawing a circle with old style Animate() fixed.

A syntax error when run under Python 2.7 with 'yield from' fixed. Be advised that salabim will
drop Python 2.7 support in the future.

2.3.2.3

===========================
Bug fixes
---------
ItemFile.read_item(), ItemFile.read_item_int(), ItemFile.read_item_float() and ItemFile.read_bool()
did ignore tabs completely.
From this version on, tabs are treated as whitespace, just like blanks.

Error in scaling of lines, rectangles, polygons and points fixed.
Line widths are now always rounded, which has the consequence that lines with a line width < 0.5 are not
displayed.

2.3.2.2

===========================
Bug fixes
---------
Circles were scaled twice. Fixed.

2.3.2.1

===========================
Bug fixes
---------
Fatal error in Component.cancel() when tracing standby components fixed.

Page 17 of 28

© 2025 Safety CLI Cybersecurity Inc. All Rights Reserved.