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.
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.
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 https://www.scipy.org/stackspec.html for the core ones, but also https://salib.github.io/SALib/ 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 ( https://beopt.nrel.gov/downloadDView).
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?
I'm having trouble opening csv files exported from Homer in Dview. On file example is attached.
I get this message: "The selected file is not of the correct format, is corrupt, no longer exists, or you do not have permission to open it."
I can open the same file in Excel or notepad.
Do you have any tip?
Hi @Matt Steen
I'm trying to run your script with Spyder but I get this error:
File "<stdin>", line 1
SyntaxError: (unicode error) 'unicodeescape' codec can't decode bytes in position 2-3: truncated \UXXXXXXXX escape
The csv file is attached.
Hello Matt, thank you for you help.
I managed to make it work using inverted backslashes.