Skip to content

Commit

Permalink
Merge branch 'master' into dhollander16
Browse files Browse the repository at this point in the history
  • Loading branch information
rutgerfick committed Aug 27, 2018
2 parents 5f9f3f6 + f635d70 commit b764d37
Show file tree
Hide file tree
Showing 2 changed files with 42 additions and 11 deletions.
5 changes: 3 additions & 2 deletions dmipy/core/modeling_framework.py
Original file line number Diff line number Diff line change
Expand Up @@ -703,7 +703,8 @@ def _add_optimization_parameter(
{(None, 'fraction'): parameter_name})

def visualize_model_setup(
self, view=True, cleanup=True, with_parameters=False):
self, view=True, cleanup=True, with_parameters=False,
im_format='png'):
"""
Visualizes MultiCompartmentModel setup using graphviz module. It uses
the uuid module to create a unique identifier for each model in the
Expand All @@ -727,7 +728,7 @@ def visualize_model_setup(
with_parameters: boolean,
Whether or not to also visualize the parameters of each model.
"""
dot = Digraph('Model Setup')
dot = Digraph('Model Setup', format=im_format)
base_model = self.__class__.__name__
base_uuid = str(uuid4())
dot.node(base_uuid, base_model)
Expand Down
48 changes: 39 additions & 9 deletions examples/tutorial_distributed_model_representations.ipynb

Large diffs are not rendered by default.

0 comments on commit b764d37

Please sign in to comment.