Skip to content

Commit

Permalink
Merge pull request #2 from vivarium-collective/update-schema
Browse files Browse the repository at this point in the history
Update schema
  • Loading branch information
eagmon authored Feb 8, 2024
2 parents c4f8cfd + 278c22c commit 0f1c3df
Show file tree
Hide file tree
Showing 4 changed files with 439 additions and 2 deletions.
14 changes: 14 additions & 0 deletions bigraph_viz/__init__.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,17 @@
import pprint
from bigraph_viz.plot import plot_bigraph, plot_flow, plot_multitimestep
from bigraph_viz.dict_utils import pp, pf, schema_state_to_dict
from bigraph_viz.convert import convert_vivarium_composite


pretty = pprint.PrettyPrinter(indent=2)


def pp(x):
"""Print ``x`` in a pretty format."""
pretty.pprint(x)


def pf(x):
"""Format ``x`` for display."""
return pretty.pformat(x)
Loading

0 comments on commit 0f1c3df

Please sign in to comment.