Reference 〉 Function

Helipad.stop()

Pauses the model, allowing it to be subsequently resumed. This function takes no arguments.

Notes and Examples

  1. charwick

    Mar 23, 2020 at 6:12

    This example hooks modelPostStep to pause the model if all agents are dead.

    @heli.hook
    def modelPostStep(model):
    	if len(model.agents['agent']) == 0:
    		model.stop()
  2. Contribute a Note

    Your email address will not be published. Required fields are marked *

    You may use limited HTML for formatting. Please embed blocks of code in <pre><code> </code></pre> tags.