Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion spatialpy/core/domain.py
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
4 changes: 2 additions & 2 deletions spatialpy/core/lattice.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down