Sha256: b535b66cf77a7f79b2864c2ed1fe8548eb00b3feefa00183d463a9012e8aba49

Contents?: true

Size: 829 Bytes

Versions: 8

Compression:

Stored size: 829 Bytes

Contents

AirConditionerUse.class_eval do
  data_miner do
    process "Ensure ResidentialEnergyConsumptionSurveyResponse is populated" do
      ResidentialEnergyConsumptionSurveyResponse.run_data_miner!
    end
    
    process "Derive from ResidentialEnergyConsumptionSurveyResponse" do
      ::Earth::Utils.insert_ignore(
        :src => ResidentialEnergyConsumptionSurveyResponse,
        :dest => AirConditionerUse,
        :cols => {
          :central_ac_use => :name
        }
      )
    end
    
    import "Ian's precalculated fugitive emissions values", :url => 'http://spreadsheets.google.com/pub?key=ri_380yQZAqBKeqie_TECgg&gid=0&output=csv' do
      key 'name', :field_name => 'air_conditioner_use_name'
      store 'fugitive_emission', :units_field_name => 'unit', :to_units => :kilograms_per_square_metre
    end
  end
end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
earth-0.7.0 lib/earth/residence/air_conditioner_use/data_miner.rb
earth-0.6.6 lib/earth/residence/air_conditioner_use/data_miner.rb
earth-0.6.5 lib/earth/residence/air_conditioner_use/data_miner.rb
earth-0.6.4 lib/earth/residence/air_conditioner_use/data_miner.rb
earth-0.6.3 lib/earth/residence/air_conditioner_use/data_miner.rb
earth-0.6.2 lib/earth/residence/air_conditioner_use/data_miner.rb
earth-0.6.1 lib/earth/residence/air_conditioner_use/data_miner.rb
earth-0.6.0 lib/earth/residence/air_conditioner_use/data_miner.rb