ARA-Trans / iAM

iAM - Infrastructure Asset Management
GNU Affero General Public License v3.0
4 stars 4 forks source link

Unclear error when cash flow splits are not provided #619

Open jakedw7 opened 4 years ago

jakedw7 commented 4 years ago

If a user enters a criteria in the split treatment tab of the investments parameter (left pane) but does not provide any data in the split year parameter table (right pane), then the error log reports "Index Out Of Range error". This should report a clearer error such as "No split year data for criteria {Description}.

If a user tried to run a simulation with NO criteria entries, the system will crash with the same error. In this case, the simulation should still run, allocating all budget to the planned year.

This is a critical bug as historical simulations will not run. image

image

jakedw7 commented 4 years ago

Per Gregg: A default value will be added to existing simulations if none exist at the start of the run. Per Maxx: This seems to be an acceptable solution.