lib/urbanopt/scenario/default_reports/scenario_report.rb in urbanopt-scenario-0.2.0.pre2 vs lib/urbanopt/scenario/default_reports/scenario_report.rb in urbanopt-scenario-0.2.0
- old
+ new
@@ -149,11 +149,11 @@
# +file_name+ - _String_ - Assign a name to the saved scenario results file without an extension
def save(file_name = 'default_scenario_report')
# reassign the initialize local variable @file_name to the file name input.
@file_name = file_name
- # save the csv data
+ # save the scenario reports csv and json data
old_timeseries_path = nil
if !@timeseries_csv.path.nil?
old_timeseries_path = @timeseries_csv.path
end
@@ -182,9 +182,15 @@
if !old_timeseries_path.nil?
@timeseries_csv.path = old_timeseries_path
else
@timeseries_csv.path = File.join(@directory_name, file_name + '.csv')
end
+
+ # save the feature reports csv and json data
+ # @feature_reports.each do |feature_report|
+ # feature_report.save_feature_report()
+ # end
+
return true
end
##
# Converts to a Hash equivalent for JSON serialization.