Results Modifications
E4ST.ResultsTemplate — TypeResultsTemplate(;file, name, col_sort=:initial_order) <: ModificationThis is a mod that outputs computed results, given a file representing the template of the things to be aggregated. name is simply the name of the modification, and will be used as the root for the filename that the aggregated information is saved to. This can be used for computing results or welfare.
Keyword Arguments
file- the file pointing to a table specifying which results to calculatename- the name of the mod, do not need to specify in a config filecol_sort- the column(s) to sort by. Defaults to the order in which they were originally specified.
The file should represent a csv table with the following columns:
table_name- the name of the table being aggregated. i.e.gen,bus, etc. If you leave it empty, it will callcompute_welfareinstead ofcompute_resultresult_name- the name of the column in the table being aggregated. Note that the column must have a Unit accessible viaget_table_col_unit.filter_- the filtering conditions for the rows of the table. I.e.filter1. Seeparse_comparisonsfor information on what types of filters could be provided.filter_years- the filtering conditions for the years to be aggregated. Seeparse_year_idxsfor information on the year filters.filter_hours- the filtering conditions for the hours to be aggregated. Seeparse_hour_idxsfor information on the hour filters.
Note that, for the filter_ or filter_hours columns, if a column name of the data table (or hours table) is given, new rows will be created for each unique value of that column. I.e. if a value of gentype is given, there will be made a new row for gentype=>coal, gentype=>ng, etc.
E4ST.YearlyTable — Typestruct YearlyTable <: Modification
YearlyTable(;name, table_name, groupby=Symbol[], group_hours_by=Symbol[])This modification creates an agregated table for each year in the simulation. It includes all of the result formulas listed in get_results_formulas(data, table_name), grouped by column names in groupby. The hours are grouped by columns from the group_hours_by field.
Fields:
name- the name of the Modification, (don't need to specify this field in config file). The outputed table will be saved toget_out_path(config, "<name>_<year>.csv")table_name- the name of the table to export. I.e.gen,bus, orbranchgroupby = Symbol[]- the name(s) of the columns of the table specified bytable_nameto group by. I.e.state,nation,genfuel,gentype, etc. Leave blank to group the whole table together into a single row. To prevent any grouping and show every row, give a:group_hours_by = Symbol[]- the name(s) of the columns of the hours table to group by. I.e.season. Leave blank to group the whole table together. To prevent any grouping and show every hour, give a:
E4ST.WelfareTable — Typestruct WelfareTable <: ModificationOutputs a table with a breakdown of each of the terms going into welfare, for each year.
Arguments/keyword arguments:
- name::Symbol
- groupby - empty by default to not group by anything. Could choose to group by state, county, etc.