model.dez

DEZ Data module. Similar to aez.py, kept separate here in to imitate xls model. Mostly reproduces the corresponding xls sheet, with a few simplifications:

  • All breakdowns by year have been removed as the TOA is assumed fixed for all years on all solutions.
  • 'Solution ocean data' table has not been replicated as it has no function in the model.

Areas are pulled from CSVs in the 'ocean/world' directory, and allocations from the 'ocean/allocation' directory. These in turn are generated from their corresponding spreadsheets in the 'ocean' directory. These values are fixed across all solutions but if they do need updating the xls sheets can be changed and the CSVs can be updated by running the relevant script in the 'tools' directory.

DEZ Data module

DEZ(solution_name)
def get_ocean_distribution(self):

Returns relevant ocean data for Unit Adoption module