OpenStudio Analysis Spreadsheet Outputs
I've successfully run several analyses using the spreadsheet. However, I have not been able to include specific outputs other than the ones from the template.xlsx file. The documentation lacks a detailed description for setting up this sheet so I was hoping to fill in some blanks. Here's what I've done so far:
1) Modified the open_studio_results
reporting measure to include a runner.registerValue
statement in the run method. The SQL query has been tested and returns the correct value.
query = "SELECT Value FROM TabularDataWithStrings WHERE ReportName = 'Economics Results Summary Report' AND ReportForString = 'Entire Facility' AND TableName = 'Annual Cost' AND RowName = 'Cost' AND ColumnName = 'Total'"
value = sqlFile.execAndReturnFirstDouble(query).get
runner.registerValue("annual_cost_total", value)
2) Included it in the measures folder.
3) On the Outputs sheet I've included the following in the Measure/Variable Unique Name column (D).
open_studio_results.annual_cost_total
Did you also include the measure in the Variables worksheet?
I know this will sound wonky, but try putting that into a different reporting measure. Then make sure you are using measure.variable_name in the spreadsheet output tab. The exact name needed can be found by looking at the .json file for a datapoint.
actually, try 'standard_reports.annual_cost_total' in the spreadsheet. There usually isnt a open_studio_results measure that is avail in the workflow. I think those values get put into standard_reports. Any how, all the measures available in the workflow (as well as the arguments or values that are available) can be found in the data_points/{uuid}.json file
@shorowit - thanks for the suggestion. I tried and no luck.
@BrianLBall - looking at the JSON, it's actually
standard_report_legacy.total_life_cycle_cost
that i'm after, which incidentally looks like it's listed incorrectly in the example projects asstandard_report.total_life_cycle_cost
.I should add that my goal is to download the CSV Results from the sims. It's unclear to me whether the Outputs sheet allows for user-defined outputs or simply those that are built-in and listed in the JSON file.
if you put the variable in the output tab and set the export column to true, the value should end up in the database and then be available on csv or rdataframe export