polychron.views.MCMCProgressView Module
MCMCProgressView
Bases: PopupView
View for displaying MCMC calibratrion progress
Formely within StartPage::load_mcmc, triggered by tools > calibrate model
__init__
__init__(parent: Frame) -> None
Construct the view, without binding any callbacks
update_progress
update_progress(percent: int) -> None
Update the progress bar and text label with current progress
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
percent
|
int
|
MCMC calibration progress as an integer percentage in the inclusive range [0, 100] |
required |
write
write(text: str) -> None
Ensure that MCMCProgressView duck-types as Writable - i.e. implement write(str) so it can be used as the file argument to print to update the progress bar (full TextIO is not required)
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
text
|
str
|
The str to be 'printed'. |
required |
set_curve_name
set_curve_name(curve_name: str) -> None
Update the title label with the selected calibration curve.