Skip to content

Commit

Permalink
Might as well do it here too for consistency.
Browse files Browse the repository at this point in the history
  • Loading branch information
shorowit committed Sep 26, 2024
1 parent fba96d4 commit e6ab5ea
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
3 changes: 2 additions & 1 deletion ReportUtilityBills/measure.rb
Original file line number Diff line number Diff line change
Expand Up @@ -488,7 +488,8 @@ def report_monthly_output_results(runner, args, timestamps, monthly_data, monthl
data = data.zip(*monthly_data)

# Write file
CSV.open(monthly_output_path, 'wb') { |csv| data.to_a.each { |elem| csv << elem } }
# Note: We don't use the CSV library here because it's slow for large files
File.open(monthly_output_path, 'wb') { |csv| data.to_a.each { |elem| csv << "#{elem.join(',')}\n" } }
elsif ['json', 'msgpack'].include? args[:output_format]
h = {}
h['Time'] = data[2..-1]
Expand Down
6 changes: 3 additions & 3 deletions ReportUtilityBills/measure.xml
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@
<schema_version>3.1</schema_version>
<name>report_utility_bills</name>
<uid>ca88a425-e59a-4bc4-af51-c7e7d1e960fe</uid>
<version_id>057900e7-7e6b-4ea7-976a-3818a92bdde4</version_id>
<version_modified>2024-09-20T18:14:01Z</version_modified>
<version_id>dd47ff13-28e8-414a-abb6-940ee40e7c55</version_id>
<version_modified>2024-09-26T05:04:27Z</version_modified>
<xml_checksum>15BF4E57</xml_checksum>
<class_name>ReportUtilityBills</class_name>
<display_name>Utility Bills Report</display_name>
Expand Down Expand Up @@ -180,7 +180,7 @@
<filename>measure.rb</filename>
<filetype>rb</filetype>
<usage_type>script</usage_type>
<checksum>93B04330</checksum>
<checksum>CC656203</checksum>
</file>
<file>
<filename>detailed_rates/Adams Electric Cooperative Inc - Rate Schedule T1 TOD (Effective 2013-02-01).json</filename>
Expand Down

0 comments on commit e6ab5ea

Please sign in to comment.