read_cmd module

This module reads parameters for the model from the command line, and defines the default parameters if none are specified.

read_cmd.parameters(cmd_line_input)

Read parameters defined from command line, or return with defaults if no explicit parameters set.

Parameters:cmd_line_input – List of strings read from command line by sys.argv.

Return: Tuple (num_of_agents, lifespan, neighbourhood, num_of_iterations, animate)