-
Notifications
You must be signed in to change notification settings - Fork 11
MultipleLogsums
This allows us to reference different logsum files for each forecast year. The referencing occurs in settings.yml. If a setting doens't exist a default is used. Any referenced files are combined and used in the hedonic during simulation (just like the basic one has been used).
We want the logsum variables to be set by default for ALL YEARS to the current file. Then we want to override in the yaml in two stages. First, we can override by year so that if the logsum_2010 assignment statement exists it uses that file for all scenarios. Then if a year-specific file assignment it assign that new file for all scenarios. If a scenario-specific file exist it overrides both previous assignment. Finally if both are specified it overrides it all.
logsum = ‘logums_super_generic’
logsum_2010 = ...
logsum_s1 = ...
logsum_2010_s1 = ...
Follows the pattern below. The logsums header and mandatory and non-mandatory sub-headers must be included in settings.yaml. The logsum file pointers can include a year indicator (logsum_2010), a scenario indicator (logsum_4) or both (logsum_2010_4). The type of logsum pointer that is used in the initial year of simulation will be used throughout the simulation. For example, logsum_4 takes precedence over the year indicator pointers. Therefore, that file will be used throughout the simulation. It will not switch in 2020. In the case of the non-mandatory pointers below, when scenario 4 is run, the simulation will point to logsum_2010_4 in 2010 and 2015 and then to logsum_2020_4 in all subsequent years. The filenames can be anything as long as the file follows the logsum format and is in the data directory.
logsums:
mandatory:
logsum: 06_002_mandatoryAccessibilities.csv
logsum_2010: 2010_06_002_mandatoryAccessibilities.csv
logsum_2020: 2020_06_002_mandatoryAccessibilities.csv
logsum_4: s4_06_002_mandatoryAccessibilities.csv
non_mandatory:
logsum_2010: 2010_06_002_nonMandatoryAccessibilities.csv
logsum_2020: 2020_06_002_nonMandatoryAccessibilities.csv
logsum_2010_4: s4_2010_06_002_nonMandatoryAccessibilities.csv
logsum_2020_4: s4_2010_06_002_nonMandatoryAccessibilities.csv