Open ahawkes opened 3 months ago
Thanks for this @ahawkes. This is a really useful todo list.
I've crossed off one thing that's already implemented and I've opened an issue for another. We can keep your text updated as we open issues for the remaining bits.
Hi @ahawkes, I've got a couple of questions about the validation for assets here because I'm working on #63.
commission_year
to a time after the simulation ends (as it will never be used)?decommission_year
column in assets.csv
yet. Is this a feature we should add? If it's not required right now, I'll open an issue to do it later so we don't forget.
Here is an initial list of input data validation checks for process-related input files, organised by input data CSV file.
PROCESSES
No duplicate ID(already implemented)PROCESS_PARAMETERS
no duplicate process_id - only one set of parameters for each agent (BUG: #137)process_id must exist in processes.csv file(already implemented)lifetime must be positive (#163)discount_rate must be positive. Warning if it is >1 to say discount rate for the process is more than 100%. (#163)cap2act must be positive (#163)PROCESS_FLOWS
process_id must exist in processes.csv file (duplicates are allowed)(already implemented)flow_type can be "fixed" or "flexible" (defaults to "fixed" if not supplied) only(already implemented)PROCESS_PACS
process_id must exist in processes.csv file (duplicates are allowed)(already implemented)Any identified PAC must exist in commodities.csv (i.e. PAC is the commodity_id) (#164)every process must have at least one PAC(already implemented - empty CSV files are not allowed)PROCESS_AVAILABILITIES
process_id must exist in processes.csv file (duplicates are allowed)(already implemented)limit_type must be "fx", "lo" or "up"(already implemented)value must be between 0 and 1(already implemented)PROCESS_REGIONS
process_id must exist in processes.csv file (duplicates are allowed as process can be available in several regions)(already implemented)region_id must exist in regions.csv (#138)ASSET (putting this here as it's mainly process-related) (all should be done with #63)
GENERAL PROCESS-RELATED CONSISTENCY CHECKS