From b3316cea83f3e241d36d752e378ca315f76bb2f2 Mon Sep 17 00:00:00 2001 From: Luis Aleixo Date: Wed, 7 Jul 2021 10:55:06 +0000 Subject: [PATCH] Bugfixes/terminal error tuple --- cara/apps/expert.py | 2 +- cara/monte_carlo/models.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/cara/apps/expert.py b/cara/apps/expert.py index 31903b79..7a324a7c 100644 --- a/cara/apps/expert.py +++ b/cara/apps/expert.py @@ -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 diff --git a/cara/monte_carlo/models.py b/cara/monte_carlo/models.py index 7348e3be..6f09023e 100644 --- a/cara/monte_carlo/models.py +++ b/cara/monte_carlo/models.py @@ -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.