From f7b243541240cd22ff93facb2af38f8dfc2a4b08 Mon Sep 17 00:00:00 2001 From: Bryan Rumsey Date: Thu, 5 Jan 2023 13:48:52 -0500 Subject: [PATCH 1/2] Fixed issue with type_ids in XML mesh and mesh IO lattices. --- spatialpy/core/lattice.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/spatialpy/core/lattice.py b/spatialpy/core/lattice.py index d23ce53d..2e7ca70a 100644 --- a/spatialpy/core/lattice.py +++ b/spatialpy/core/lattice.py @@ -548,7 +548,7 @@ def __get_types(self): if self.type_ids is not None: type_id = self.type_ids[type_id] - type_ids[int(ndx)] = f"type_{type_id}" + type_ids[int(ndx)] = type_id except ValueError as err: errmsg = f"Could not read in subdomain file, error on line {lnum}: {line}" raise LatticeError(errmsg) from err @@ -685,7 +685,7 @@ def __get_types(self): if self.type_ids is not None: type_id = self.type_ids[type_id] - type_ids[int(ndx)] = f"type_{type_id}" + type_ids[int(ndx)] = type_id except ValueError as err: errmsg = f"Could not read in subdomain file, error on line {lnum}: {line}" raise LatticeError(errmsg) from err From 79503f08e20d307ea8a4c6ef239d20c90bbeb2f1 Mon Sep 17 00:00:00 2001 From: BryanRumsey <44621966+BryanRumsey@users.noreply.github.com> Date: Mon, 16 Jan 2023 15:49:52 -0500 Subject: [PATCH 2/2] Testing plotly fix --- spatialpy/core/domain.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/spatialpy/core/domain.py b/spatialpy/core/domain.py index 81ea1f27..f7afc481 100644 --- a/spatialpy/core/domain.py +++ b/spatialpy/core/domain.py @@ -1035,7 +1035,8 @@ def plot_types(self, width=None, height=None, colormap=None, size=None, title=No if return_plotly_figure: return fig - init_notebook_mode(connected=True) + # init_notebook_mode(connected=True) + init_notebook_mode() iplot(fig) return