Skip to content

Commit

Permalink
working through notebook
Browse files Browse the repository at this point in the history
  • Loading branch information
eagmon committed Nov 5, 2024
1 parent cbafbd3 commit 286b379
Show file tree
Hide file tree
Showing 3 changed files with 239 additions and 203 deletions.
404 changes: 233 additions & 171 deletions demo/particle_comets.ipynb

Large diffs are not rendered by default.

30 changes: 0 additions & 30 deletions scripts/test_processes.py

This file was deleted.

8 changes: 6 additions & 2 deletions spatio_flux/processes/particle_comets.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
"""
from process_bigraph import Composite
from bigraph_viz import plot_bigraph
from spatio_flux import core
from spatio_flux.viz.plot import plot_time_series, plot_species_distributions_with_particles_to_gif

# TODO -- need to do this to register???
Expand Down Expand Up @@ -107,6 +106,7 @@ def get_particle_comets_state(


def run_particle_comets(
core,
total_time=10.0,
**kwargs
):
Expand Down Expand Up @@ -162,4 +162,8 @@ def run_particle_comets(


if __name__ == '__main__':
run_particle_comets(**default_config)
from process_bigraph import ProcessTypes
from spatio_flux import register_types
core = ProcessTypes()
core = register_types(core)
run_particle_comets(core=core, **default_config)

0 comments on commit 286b379

Please sign in to comment.