def report(self, tsd, output_folder, basename): """Use vars to fill worksheets in an excel file $destination_template based on the template. The template references self.report_variables. The destination_template may contain date format codes that will be updated with the current datetime.""" if self.testing: from cea.utilities import reporting reporting.full_report_to_xls(tsd, output_folder, basename, self)
def write_results(bpr, building_name, date, loads_output, locator, massflows_output, resolution_outputs, temperatures_output, tsd, debug): if resolution_outputs == 'hourly': writer = demand_writers.HourlyDemandWriter(loads_output, massflows_output, temperatures_output) elif resolution_outputs == 'monthly': writer = demand_writers.MonthlyDemandWriter(loads_output, massflows_output, temperatures_output) else: raise Exception('error') if debug: print( 'Creating instant plotly visualizations of demand variable time series.' ) print('Behavior can be changed in cea.utilities.reporting code.') print('Writing detailed demand results of {} to .xls file.'.format( building_name)) reporting.quick_visualization_tsd(tsd, locator.get_demand_results_folder(), building_name) reporting.full_report_to_xls(tsd, locator.get_demand_results_folder(), building_name) else: writer.results_to_csv(tsd, bpr, locator, date, building_name)
def report(self, template, variables, output_folder, basename): """Use vars to fill worksheets in an excel file $destination_template based on the template. The template references self.report_variables. The destination_template may contain date format codes that will be updated with the current datetime.""" if self.testing: from cea.utilities import reporting reporting.full_report_to_xls(template, variables, output_folder, basename, self)