Module metadata

Examine the LCC2005 group of modules:

  1. What versions of each of the modules are you using?

  2. Identify the timestep used for each module? How do they differ?

  3. Identify the input and output data (object) dependencies for these modules. Which are shared among them?

  4. What external data dependencies must be downloaded?

Module events

Examine the SpaDES sample modules:

  1. Identify the types of events found in each module. Which event types are “shared” among these modules?

  2. Compare the scheduling of plot events in each of the modules:

    1. what is the default plot interval for each module?

    2. at what times in the simulation are plot events scheduled and executed for each module? (hint: what is the default timeunit for each)

  3. Identify the input and output data (object) dependencies for these modules. Which are shared among them?

  4. What external data dependencies must be downloaded?

Debugging

Reminder: see the debugging info at the wiki.

Let’s cause an error in an existing module:

  1. Create a copy of the gameOfLife module, called gameOfLifeError:

  2. First, find and replace all instances of “gameOfLife” with “gameOfLifeError”.

    Then, edit line 100 to read:

    and edit line 109 to read:

  3. Run the working module normally:

  4. Run the broken version and confirm that you get an error:

  5. Without knowing where the errors occur, how would you start debugging the error?

Create a new module

Create a simple module that does one of the following:

  1. generates a random map (hint: see ?gaussMap) and updates the values in the raster cells;

  2. model population dynamics as subpopulations within each raster cell.