Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update schema #2

Merged
merged 15 commits into from
Feb 8, 2024
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
Loading