Is there a Scripting Language in Homer Pro to process "Results"?  



Is there a Scripting Language in Homer Pro to process "Results"

I need to Export a lot Tabular, Cash Flow Data for multiple Sensitivity/Optimization Cases.

Thanks,  Tom




There is not, however you can export your results as a CSV file and it can be helpful to sift through your results in a spreadsheet software like Excel.

- Andrew


@Tom Merrill,

I recommend Python as a scripting language for data analysis and manipulation and Jupyter (IPython) notebooks for writing and running code. Python is widely used for scientific computing and has many useful packages. See for the core ones, but also for sensitivity analysis. In particular, I find Pandas and the "DataFrame.read_csv" method to be very useful. I've been using Python to generate inputs for HOMER and reformatting individual Simulation Results CSVs for viewing in DView (


Nice Matt!

But, how does it effectively works? How do you perform sensitivity analysis from "outside" since the simulation engine runs "inside" Homer?

Do you have a script example on how to generate inputs for Homer?

Thank you!

I haven't used the SALib Python package and was merely pointing out some resources I know of for the original question. HOMER as you probably know has sensitivity variables for performing sensitivity analyses from "inside" (see  


The Python module I wrote has several functions for extrapolating load or resource data that don't align with HOMER's timestep - e.g. daily peak load or annual daily hydro flow - into a format HOMER can use, which for my project's timestep of 60 min is a 1 column x 8760 row CSV file. Some of these can save time over creating these files manually (in Excel for example). 


I created a public GitHub repository for my HOMER scripts and will update it as I develop it and have time. 


Please Login or Register