Merge branch 'bugfixes/terminal-error-tuple' into 'master'

Bugfixes/terminal error tuple

Closes #171

See merge request cara/cara!205
This commit is contained in:
Philip James Elson 2021-07-07 10:55:06 +00:00
commit 1fca4d24b7
2 changed files with 2 additions and 2 deletions

View file

@ -98,7 +98,7 @@ class Controller:
def ipympl_canvas(figure):
matplotlib.interactive(False)
ipympl.backend_nbagg.new_figure_manager_given_figure(uuid.uuid1(), figure)
ipympl.backend_nbagg.new_figure_manager_given_figure(hash(uuid.uuid1()), figure)
figure.canvas.toolbar_visible = True
figure.canvas.toolbar.collapsed = True
figure.canvas.footer_visible = False

View file

@ -96,7 +96,7 @@ def _build_mc_model(model: _ModelType) -> typing.Type[MCModelBase[_ModelType]]:
cls = dataclasses.make_dataclass(
model.__name__, # type: ignore
fields, # type: ignore
bases=bases, # type: ignore
bases=tuple(bases), # type: ignore
namespace={'_base_cls': model},
# This thing can be mutable - the calculations live on
# the wrapped class, not on the MCModelBase.