Sha256: 447b7e899fcb09103100b39d621db07890471a8a36a1d24d3414bfa2403e672f
Contents?: true
Size: 615 Bytes
Versions: 3
Compression:
Stored size: 615 Bytes
Contents
AutomobileTypeFuelYearControl.class_eval do data_miner do process "Start from scratch" do delete_all end import "automobile type fuel year control data derived from the 2010 EPA GHG Inventory", :url => "file://#{Earth::DATA_DIR}/automobile/annual_emission_controls.csv" do key 'name' store 'type_name' store 'fuel_family' store 'year' store 'control_name' store 'type_fuel_control_name', :synthesize => proc { |row| [row['type_name'], row['fuel_family'], row['control_name']].join(' ') } store 'total_travel_percent' end end end
Version data entries
3 entries across 3 versions & 1 rubygems