progress
progress_bar(progress, bar_length=10, message='spotpython tuning:', y=None, filename=None)
¶
Displays or updates a console progress bar.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
progress |
float
|
a float between 0 and 1. Any int will be converted to a float. A value under 0 represents a halt. A value at 1 or bigger represents 100%. |
required |
bar_length |
int
|
length of the progress bar |
10
|
message |
str
|
message text to display |
'spotpython tuning:'
|
filename |
str
|
If not None, write the progress bar to filename. |
None
|
Source code in spotpython/utils/progress.py
4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 |
|