quintel / etlocal

Regional data analysis tool for the Energy Transition Model
https://data.energytransitionmodel.com/
MIT License
3 stars 2 forks source link

Failing tests for the front-end of ETLocal #98

Closed grdw closed 6 years ago

grdw commented 6 years ago

There's an input in the front-end of ETLocal but is never used in any of the sparse graph qeuries (so my suggestion would be to simply remove all these):

Failures:

  1) ETLocal interface includes input_buildings_district_heating_chp_network_gas_share
     Failure/Error: expect(dataset_inputs).to include(item.key.to_s)
       expected ["input_percentage_of_old_residences", "input_industry_chemical_fertilizers_scaling_factor", "input_i...port_final_demand_hydrogen_demand", "transport_final_demand_for_road_compressed_network_gas_demand"] to include "input_buildings_district_heating_chp_network_gas_share"
     # ./spec/services/etsource_spec.rb:25:in `block (3 levels) in <top (required)>'
     # ./spec/rails_helper.rb:41:in `block (3 levels) in <top (required)>'
     # ./spec/rails_helper.rb:40:in `block (2 levels) in <top (required)>'

  2) ETLocal interface includes input_buildings_district_heating_chp_wood_pellets_share
     Failure/Error: expect(dataset_inputs).to include(item.key.to_s)
       expected ["input_percentage_of_old_residences", "input_industry_chemical_fertilizers_scaling_factor", "input_i...port_final_demand_hydrogen_demand", "transport_final_demand_for_road_compressed_network_gas_demand"] to include "input_buildings_district_heating_chp_wood_pellets_share"
     # ./spec/services/etsource_spec.rb:25:in `block (3 levels) in <top (required)>'
     # ./spec/rails_helper.rb:41:in `block (3 levels) in <top (required)>'
     # ./spec/rails_helper.rb:40:in `block (2 levels) in <top (required)>'

  3) ETLocal interface includes input_buildings_district_heating_chp_biogas_share
     Failure/Error: expect(dataset_inputs).to include(item.key.to_s)
       expected ["input_percentage_of_old_residences", "input_industry_chemical_fertilizers_scaling_factor", "input_i...port_final_demand_hydrogen_demand", "transport_final_demand_for_road_compressed_network_gas_demand"] to include "input_buildings_district_heating_chp_biogas_share"
     # ./spec/services/etsource_spec.rb:25:in `block (3 levels) in <top (required)>'
     # ./spec/rails_helper.rb:41:in `block (3 levels) in <top (required)>'
     # ./spec/rails_helper.rb:40:in `block (2 levels) in <top (required)>'

  4) ETLocal interface includes input_buildings_district_heating_heatpump_electricity_share
     Failure/Error: expect(dataset_inputs).to include(item.key.to_s)
       expected ["input_percentage_of_old_residences", "input_industry_chemical_fertilizers_scaling_factor", "input_i...port_final_demand_hydrogen_demand", "transport_final_demand_for_road_compressed_network_gas_demand"] to include "input_buildings_district_heating_heatpump_electricity_share"
     # ./spec/services/etsource_spec.rb:25:in `block (3 levels) in <top (required)>'
     # ./spec/rails_helper.rb:41:in `block (3 levels) in <top (required)>'
     # ./spec/rails_helper.rb:40:in `block (2 levels) in <top (required)>'

  5) ETLocal interface includes input_buildings_district_heating_geothermal_share
     Failure/Error: expect(dataset_inputs).to include(item.key.to_s)
       expected ["input_percentage_of_old_residences", "input_industry_chemical_fertilizers_scaling_factor", "input_i...port_final_demand_hydrogen_demand", "transport_final_demand_for_road_compressed_network_gas_demand"] to include "input_buildings_district_heating_geothermal_share"
     # ./spec/services/etsource_spec.rb:25:in `block (3 levels) in <top (required)>'
     # ./spec/rails_helper.rb:41:in `block (3 levels) in <top (required)>'
     # ./spec/rails_helper.rb:40:in `block (2 levels) in <top (required)>'

  6) ETLocal interface includes input_buildings_district_heating_heater_hydrogen_share
     Failure/Error: expect(dataset_inputs).to include(item.key.to_s)
       expected ["input_percentage_of_old_residences", "input_industry_chemical_fertilizers_scaling_factor", "input_i...port_final_demand_hydrogen_demand", "transport_final_demand_for_road_compressed_network_gas_demand"] to include "input_buildings_district_heating_heater_hydrogen_share"
     # ./spec/services/etsource_spec.rb:25:in `block (3 levels) in <top (required)>'
     # ./spec/rails_helper.rb:41:in `block (3 levels) in <top (required)>'
     # ./spec/rails_helper.rb:40:in `block (2 levels) in <top (required)>'

  7) ETLocal interface includes input_buildings_district_heating_central_heat_network_share
     Failure/Error: expect(dataset_inputs).to include(item.key.to_s)
       expected ["input_percentage_of_old_residences", "input_industry_chemical_fertilizers_scaling_factor", "input_i...port_final_demand_hydrogen_demand", "transport_final_demand_for_road_compressed_network_gas_demand"] to include "input_buildings_district_heating_central_heat_network_share"
     # ./spec/services/etsource_spec.rb:25:in `block (3 levels) in <top (required)>'
     # ./spec/rails_helper.rb:41:in `block (3 levels) in <top (required)>'
     # ./spec/rails_helper.rb:40:in `block (2 levels) in <top (required)>'

  8) ETLocal interface includes input_energy_power_nuclear_gen2_uranium_oxide_production
     Failure/Error: expect(dataset_inputs).to include(item.key.to_s)
       expected ["input_percentage_of_old_residences", "input_industry_chemical_fertilizers_scaling_factor", "input_i...port_final_demand_hydrogen_demand", "transport_final_demand_for_road_compressed_network_gas_demand"] to include "input_energy_power_nuclear_gen2_uranium_oxide_production"
     # ./spec/services/etsource_spec.rb:25:in `block (3 levels) in <top (required)>'
     # ./spec/rails_helper.rb:41:in `block (3 levels) in <top (required)>'
     # ./spec/rails_helper.rb:40:in `block (2 levels) in <top (required)>'

  9) ETLocal interface includes input_energy_power_nuclear_gen3_uranium_oxide_production
     Failure/Error: expect(dataset_inputs).to include(item.key.to_s)
       expected ["input_percentage_of_old_residences", "input_industry_chemical_fertilizers_scaling_factor", "input_i...port_final_demand_hydrogen_demand", "transport_final_demand_for_road_compressed_network_gas_demand"] to include "input_energy_power_nuclear_gen3_uranium_oxide_production"
     # ./spec/services/etsource_spec.rb:25:in `block (3 levels) in <top (required)>'
     # ./spec/rails_helper.rb:41:in `block (3 levels) in <top (required)>'
     # ./spec/rails_helper.rb:40:in `block (2 levels) in <top (required)>'

  10) ETLocal interface includes input_energy_power_wind_turbine_coastal_production
      Failure/Error: expect(dataset_inputs).to include(item.key.to_s)
        expected ["input_percentage_of_old_residences", "input_industry_chemical_fertilizers_scaling_factor", "input_i...port_final_demand_hydrogen_demand", "transport_final_demand_for_road_compressed_network_gas_demand"] to include "input_energy_power_wind_turbine_coastal_production"
      # ./spec/services/etsource_spec.rb:25:in `block (3 levels) in <top (required)>'
      # ./spec/rails_helper.rb:41:in `block (3 levels) in <top (required)>'
      # ./spec/rails_helper.rb:40:in `block (2 levels) in <top (required)>'

  11) ETLocal interface includes input_households_district_heating_chp_network_gas_share
      Failure/Error: expect(dataset_inputs).to include(item.key.to_s)
        expected ["input_percentage_of_old_residences", "input_industry_chemical_fertilizers_scaling_factor", "input_i...port_final_demand_hydrogen_demand", "transport_final_demand_for_road_compressed_network_gas_demand"] to include "input_households_district_heating_chp_network_gas_share"
      # ./spec/services/etsource_spec.rb:25:in `block (3 levels) in <top (required)>'
      # ./spec/rails_helper.rb:41:in `block (3 levels) in <top (required)>'
      # ./spec/rails_helper.rb:40:in `block (2 levels) in <top (required)>'

  12) ETLocal interface includes input_households_district_heating_chp_wood_pellets_share
      Failure/Error: expect(dataset_inputs).to include(item.key.to_s)
        expected ["input_percentage_of_old_residences", "input_industry_chemical_fertilizers_scaling_factor", "input_i...port_final_demand_hydrogen_demand", "transport_final_demand_for_road_compressed_network_gas_demand"] to include "input_households_district_heating_chp_wood_pellets_share"
      # ./spec/services/etsource_spec.rb:25:in `block (3 levels) in <top (required)>'
      # ./spec/rails_helper.rb:41:in `block (3 levels) in <top (required)>'
      # ./spec/rails_helper.rb:40:in `block (2 levels) in <top (required)>'

  13) ETLocal interface includes input_households_district_heating_chp_biogas_share
      Failure/Error: expect(dataset_inputs).to include(item.key.to_s)
        expected ["input_percentage_of_old_residences", "input_industry_chemical_fertilizers_scaling_factor", "input_i...port_final_demand_hydrogen_demand", "transport_final_demand_for_road_compressed_network_gas_demand"] to include "input_households_district_heating_chp_biogas_share"
      # ./spec/services/etsource_spec.rb:25:in `block (3 levels) in <top (required)>'
      # ./spec/rails_helper.rb:41:in `block (3 levels) in <top (required)>'
      # ./spec/rails_helper.rb:40:in `block (2 levels) in <top (required)>'

  14) ETLocal interface includes input_households_district_heating_heatpump_electricity_share
      Failure/Error: expect(dataset_inputs).to include(item.key.to_s)
        expected ["input_percentage_of_old_residences", "input_industry_chemical_fertilizers_scaling_factor", "input_i...port_final_demand_hydrogen_demand", "transport_final_demand_for_road_compressed_network_gas_demand"] to include "input_households_district_heating_heatpump_electricity_share"
      # ./spec/services/etsource_spec.rb:25:in `block (3 levels) in <top (required)>'
      # ./spec/rails_helper.rb:41:in `block (3 levels) in <top (required)>'
      # ./spec/rails_helper.rb:40:in `block (2 levels) in <top (required)>'

  15) ETLocal interface includes input_households_district_heating_geothermal_share
      Failure/Error: expect(dataset_inputs).to include(item.key.to_s)
        expected ["input_percentage_of_old_residences", "input_industry_chemical_fertilizers_scaling_factor", "input_i...port_final_demand_hydrogen_demand", "transport_final_demand_for_road_compressed_network_gas_demand"] to include "input_households_district_heating_geothermal_share"
      # ./spec/services/etsource_spec.rb:25:in `block (3 levels) in <top (required)>'
      # ./spec/rails_helper.rb:41:in `block (3 levels) in <top (required)>'
      # ./spec/rails_helper.rb:40:in `block (2 levels) in <top (required)>'

  16) ETLocal interface includes input_households_district_heating_heater_hydrogen_share
      Failure/Error: expect(dataset_inputs).to include(item.key.to_s)
        expected ["input_percentage_of_old_residences", "input_industry_chemical_fertilizers_scaling_factor", "input_i...port_final_demand_hydrogen_demand", "transport_final_demand_for_road_compressed_network_gas_demand"] to include "input_households_district_heating_heater_hydrogen_share"
      # ./spec/services/etsource_spec.rb:25:in `block (3 levels) in <top (required)>'
      # ./spec/rails_helper.rb:41:in `block (3 levels) in <top (required)>'
      # ./spec/rails_helper.rb:40:in `block (2 levels) in <top (required)>'

  17) ETLocal interface includes input_households_district_heating_central_heat_network_share
      Failure/Error: expect(dataset_inputs).to include(item.key.to_s)
        expected ["input_percentage_of_old_residences", "input_industry_chemical_fertilizers_scaling_factor", "input_i...port_final_demand_hydrogen_demand", "transport_final_demand_for_road_compressed_network_gas_demand"] to include "input_households_district_heating_central_heat_network_share"
      # ./spec/services/etsource_spec.rb:25:in `block (3 levels) in <top (required)>'
      # ./spec/rails_helper.rb:41:in `block (3 levels) in <top (required)>'
      # ./spec/rails_helper.rb:40:in `block (2 levels) in <top (required)>'

  18) ETLocal interface includes input_industry_food_hydrogen_demand
      Failure/Error: expect(dataset_inputs).to include(item.key.to_s)
        expected ["input_percentage_of_old_residences", "input_industry_chemical_fertilizers_scaling_factor", "input_i...port_final_demand_hydrogen_demand", "transport_final_demand_for_road_compressed_network_gas_demand"] to include "input_industry_food_hydrogen_demand"
      # ./spec/services/etsource_spec.rb:25:in `block (3 levels) in <top (required)>'
      # ./spec/rails_helper.rb:41:in `block (3 levels) in <top (required)>'
      # ./spec/rails_helper.rb:40:in `block (2 levels) in <top (required)>'

  19) ETLocal interface includes input_industry_chp_combined_cycle_gas_power_fuelmix_demand
      Failure/Error: expect(dataset_inputs).to include(item.key.to_s)
        expected ["input_percentage_of_old_residences", "input_industry_chemical_fertilizers_scaling_factor", "input_i...port_final_demand_hydrogen_demand", "transport_final_demand_for_road_compressed_network_gas_demand"] to include "input_industry_chp_combined_cycle_gas_power_fuelmix_demand"
      # ./spec/services/etsource_spec.rb:25:in `block (3 levels) in <top (required)>'
      # ./spec/rails_helper.rb:41:in `block (3 levels) in <top (required)>'
      # ./spec/rails_helper.rb:40:in `block (2 levels) in <top (required)>'

  20) ETLocal interface includes input_industry_chp_engine_gas_power_fuelmix_demand
      Failure/Error: expect(dataset_inputs).to include(item.key.to_s)
        expected ["input_percentage_of_old_residences", "input_industry_chemical_fertilizers_scaling_factor", "input_i...port_final_demand_hydrogen_demand", "transport_final_demand_for_road_compressed_network_gas_demand"] to include "input_industry_chp_engine_gas_power_fuelmix_demand"
      # ./spec/services/etsource_spec.rb:25:in `block (3 levels) in <top (required)>'
      # ./spec/rails_helper.rb:41:in `block (3 levels) in <top (required)>'
      # ./spec/rails_helper.rb:40:in `block (2 levels) in <top (required)>'

  21) ETLocal interface includes input_industry_chp_turbine_gas_power_fuelmix_demand
      Failure/Error: expect(dataset_inputs).to include(item.key.to_s)
        expected ["input_percentage_of_old_residences", "input_industry_chemical_fertilizers_scaling_factor", "input_i...port_final_demand_hydrogen_demand", "transport_final_demand_for_road_compressed_network_gas_demand"] to include "input_industry_chp_turbine_gas_power_fuelmix_demand"
      # ./spec/services/etsource_spec.rb:25:in `block (3 levels) in <top (required)>'
      # ./spec/rails_helper.rb:41:in `block (3 levels) in <top (required)>'
      # ./spec/rails_helper.rb:40:in `block (2 levels) in <top (required)>'

  22) ETLocal interface includes input_industry_chp_ultra_supercritical_coal_demand
      Failure/Error: expect(dataset_inputs).to include(item.key.to_s)
        expected ["input_percentage_of_old_residences", "input_industry_chemical_fertilizers_scaling_factor", "input_i...port_final_demand_hydrogen_demand", "transport_final_demand_for_road_compressed_network_gas_demand"] to include "input_industry_chp_ultra_supercritical_coal_demand"
      # ./spec/services/etsource_spec.rb:25:in `block (3 levels) in <top (required)>'
      # ./spec/rails_helper.rb:41:in `block (3 levels) in <top (required)>'
      # ./spec/rails_helper.rb:40:in `block (2 levels) in <top (required)>'

  23) ETLocal interface includes input_industry_chemical_other_hydrogen_demand
      Failure/Error: expect(dataset_inputs).to include(item.key.to_s)
        expected ["input_percentage_of_old_residences", "input_industry_chemical_fertilizers_scaling_factor", "input_i...port_final_demand_hydrogen_demand", "transport_final_demand_for_road_compressed_network_gas_demand"] to include "input_industry_chemical_other_hydrogen_demand"
      # ./spec/services/etsource_spec.rb:25:in `block (3 levels) in <top (required)>'
      # ./spec/rails_helper.rb:41:in `block (3 levels) in <top (required)>'
      # ./spec/rails_helper.rb:40:in `block (2 levels) in <top (required)>'

  24) ETLocal interface includes input_industry_paper_hydrogen_demand
      Failure/Error: expect(dataset_inputs).to include(item.key.to_s)
        expected ["input_percentage_of_old_residences", "input_industry_chemical_fertilizers_scaling_factor", "input_i...port_final_demand_hydrogen_demand", "transport_final_demand_for_road_compressed_network_gas_demand"] to include "input_industry_paper_hydrogen_demand"
      # ./spec/services/etsource_spec.rb:25:in `block (3 levels) in <top (required)>'
      # ./spec/rails_helper.rb:41:in `block (3 levels) in <top (required)>'
      # ./spec/rails_helper.rb:40:in `block (2 levels) in <top (required)>'

Has no direct one-to-one sparse graph key for:

  25) ETLocal interface has a present sparse graph query for industry_chp_ultra_supercritical_coal_demand
      Failure/Error:
        expect(InterfaceElement.items.detect do |item|
          item.key == key.to_sym
        end).to_not be_nil

        expected: not nil
             got: nil
      # ./spec/services/etsource_spec.rb:35:in `block (3 levels) in <top (required)>'
      # ./spec/rails_helper.rb:41:in `block (3 levels) in <top (required)>'
      # ./spec/rails_helper.rb:40:in `block (2 levels) in <top (required)>'

  26) ETLocal interface has a present sparse graph query for industry_final_demand_hydrogen_non_energetic_demand
      Failure/Error:
        expect(InterfaceElement.items.detect do |item|
          item.key == key.to_sym
        end).to_not be_nil

        expected: not nil
             got: nil
      # ./spec/services/etsource_spec.rb:35:in `block (3 levels) in <top (required)>'
      # ./spec/rails_helper.rb:41:in `block (3 levels) in <top (required)>'
      # ./spec/rails_helper.rb:40:in `block (2 levels) in <top (required)>'

  27) ETLocal interface has a present sparse graph query for industry_final_demand_hydrogen_demand
      Failure/Error:
        expect(InterfaceElement.items.detect do |item|
          item.key == key.to_sym
        end).to_not be_nil

        expected: not nil
             got: nil
      # ./spec/services/etsource_spec.rb:35:in `block (3 levels) in <top (required)>'
      # ./spec/rails_helper.rb:41:in `block (3 levels) in <top (required)>'
      # ./spec/rails_helper.rb:40:in `block (2 levels) in <top (required)>'

  28) ETLocal interface has a present sparse graph query for industry_chp_engine_gas_power_fuelmix_demand
      Failure/Error:
        expect(InterfaceElement.items.detect do |item|
          item.key == key.to_sym
        end).to_not be_nil

        expected: not nil
             got: nil
      # ./spec/services/etsource_spec.rb:35:in `block (3 levels) in <top (required)>'
      # ./spec/rails_helper.rb:41:in `block (3 levels) in <top (required)>'
      # ./spec/rails_helper.rb:40:in `block (2 levels) in <top (required)>'

  29) ETLocal interface has a present sparse graph query for industry_chp_combined_cycle_gas_power_fuelmix_demand
      Failure/Error:
        expect(InterfaceElement.items.detect do |item|
          item.key == key.to_sym
        end).to_not be_nil

        expected: not nil
             got: nil
      # ./spec/services/etsource_spec.rb:35:in `block (3 levels) in <top (required)>'
      # ./spec/rails_helper.rb:41:in `block (3 levels) in <top (required)>'
      # ./spec/rails_helper.rb:40:in `block (2 levels) in <top (required)>'

  30) ETLocal interface has a present sparse graph query for industry_chp_turbine_gas_power_fuelmix_demand
      Failure/Error:
        expect(InterfaceElement.items.detect do |item|
          item.key == key.to_sym
        end).to_not be_nil

        expected: not nil
             got: nil
      # ./spec/services/etsource_spec.rb:35:in `block (3 levels) in <top (required)>'
      # ./spec/rails_helper.rb:41:in `block (3 levels) in <top (required)>'
      # ./spec/rails_helper.rb:40:in `block (2 levels) in <top (required)>'

  31) ETLocal interface has a present sparse graph query for bunkers_total_useful_demand_planes_demand
      Failure/Error:
        expect(InterfaceElement.items.detect do |item|
          item.key == key.to_sym
        end).to_not be_nil

        expected: not nil
             got: nil
      # ./spec/services/etsource_spec.rb:35:in `block (3 levels) in <top (required)>'
      # ./spec/rails_helper.rb:41:in `block (3 levels) in <top (required)>'
      # ./spec/rails_helper.rb:40:in `block (2 levels) in <top (required)>'

  32) ETLocal interface has a present sparse graph query for bunkers_useful_demand_planes_demand
      Failure/Error:
        expect(InterfaceElement.items.detect do |item|
          item.key == key.to_sym
        end).to_not be_nil

        expected: not nil
             got: nil
      # ./spec/services/etsource_spec.rb:35:in `block (3 levels) in <top (required)>'
      # ./spec/rails_helper.rb:41:in `block (3 levels) in <top (required)>'
      # ./spec/rails_helper.rb:40:in `block (2 levels) in <top (required)>'

  33) ETLocal interface has a present sparse graph query for bunkers_useful_demand_ships_demand
      Failure/Error:
        expect(InterfaceElement.items.detect do |item|
          item.key == key.to_sym
        end).to_not be_nil

        expected: not nil
             got: nil
      # ./spec/services/etsource_spec.rb:35:in `block (3 levels) in <top (required)>'
      # ./spec/rails_helper.rb:41:in `block (3 levels) in <top (required)>'
      # ./spec/rails_helper.rb:40:in `block (2 levels) in <top (required)>'

  34) ETLocal interface has a present sparse graph query for bunkers_flexibility_p2g_electricity_demand
      Failure/Error:
        expect(InterfaceElement.items.detect do |item|
          item.key == key.to_sym
        end).to_not be_nil

        expected: not nil
             got: nil
      # ./spec/services/etsource_spec.rb:35:in `block (3 levels) in <top (required)>'
      # ./spec/rails_helper.rb:41:in `block (3 levels) in <top (required)>'
      # ./spec/rails_helper.rb:40:in `block (2 levels) in <top (required)>'

  35) ETLocal interface has a present sparse graph query for bunkers_total_useful_demand_ships_demand
      Failure/Error:
        expect(InterfaceElement.items.detect do |item|
          item.key == key.to_sym
        end).to_not be_nil

        expected: not nil
             got: nil
      # ./spec/services/etsource_spec.rb:35:in `block (3 levels) in <top (required)>'
      # ./spec/rails_helper.rb:41:in `block (3 levels) in <top (required)>'
      # ./spec/rails_helper.rb:40:in `block (2 levels) in <top (required)>'

  36) ETLocal interface has a present sparse graph query for energy_power_ultra_supercritical_ccs_coal_demand
      Failure/Error:
        expect(InterfaceElement.items.detect do |item|
          item.key == key.to_sym
        end).to_not be_nil

        expected: not nil
             got: nil
      # ./spec/services/etsource_spec.rb:35:in `block (3 levels) in <top (required)>'
      # ./spec/rails_helper.rb:41:in `block (3 levels) in <top (required)>'
      # ./spec/rails_helper.rb:40:in `block (2 levels) in <top (required)>'

  37) ETLocal interface has a present sparse graph query for energy_chp_ultra_supercritical_lignite_demand
      Failure/Error:
        expect(InterfaceElement.items.detect do |item|
          item.key == key.to_sym
        end).to_not be_nil

        expected: not nil
             got: nil
      # ./spec/services/etsource_spec.rb:35:in `block (3 levels) in <top (required)>'
      # ./spec/rails_helper.rb:41:in `block (3 levels) in <top (required)>'
      # ./spec/rails_helper.rb:40:in `block (2 levels) in <top (required)>'

  38) ETLocal interface has a present sparse graph query for energy_extraction_lignite_demand
      Failure/Error:
        expect(InterfaceElement.items.detect do |item|
          item.key == key.to_sym
        end).to_not be_nil

        expected: not nil
             got: nil
      # ./spec/services/etsource_spec.rb:35:in `block (3 levels) in <top (required)>'
      # ./spec/rails_helper.rb:41:in `block (3 levels) in <top (required)>'
      # ./spec/rails_helper.rb:40:in `block (2 levels) in <top (required)>'

  39) ETLocal interface has a present sparse graph query for energy_power_hv_network_loss_demand
      Failure/Error:
        expect(InterfaceElement.items.detect do |item|
          item.key == key.to_sym
        end).to_not be_nil

        expected: not nil
             got: nil
      # ./spec/services/etsource_spec.rb:35:in `block (3 levels) in <top (required)>'
      # ./spec/rails_helper.rb:41:in `block (3 levels) in <top (required)>'
      # ./spec/rails_helper.rb:40:in `block (2 levels) in <top (required)>'

  40) ETLocal interface has a present sparse graph query for energy_hydrogen_solar_pv_solar_radiation_demand
      Failure/Error:
        expect(InterfaceElement.items.detect do |item|
          item.key == key.to_sym
        end).to_not be_nil

        expected: not nil
             got: nil
      # ./spec/services/etsource_spec.rb:35:in `block (3 levels) in <top (required)>'
      # ./spec/rails_helper.rb:41:in `block (3 levels) in <top (required)>'
      # ./spec/rails_helper.rb:40:in `block (2 levels) in <top (required)>'

  41) ETLocal interface has a present sparse graph query for energy_steel_blastfurnace_bat_transformation_cokes_demand
      Failure/Error:
        expect(InterfaceElement.items.detect do |item|
          item.key == key.to_sym
        end).to_not be_nil

        expected: not nil
             got: nil
      # ./spec/services/etsource_spec.rb:35:in `block (3 levels) in <top (required)>'
      # ./spec/rails_helper.rb:41:in `block (3 levels) in <top (required)>'
      # ./spec/rails_helper.rb:40:in `block (2 levels) in <top (required)>'

  42) ETLocal interface has a present sparse graph query for energy_hydrogen_wind_turbine_offshore_demand
      Failure/Error:
        expect(InterfaceElement.items.detect do |item|
          item.key == key.to_sym
        end).to_not be_nil

        expected: not nil
             got: nil
      # ./spec/services/etsource_spec.rb:35:in `block (3 levels) in <top (required)>'
      # ./spec/rails_helper.rb:41:in `block (3 levels) in <top (required)>'
      # ./spec/rails_helper.rb:40:in `block (2 levels) in <top (required)>'

  43) ETLocal interface has a present sparse graph query for energy_distribution_network_gas_loss_demand
      Failure/Error:
        expect(InterfaceElement.items.detect do |item|
          item.key == key.to_sym
        end).to_not be_nil

        expected: not nil
             got: nil
      # ./spec/services/etsource_spec.rb:35:in `block (3 levels) in <top (required)>'
      # ./spec/rails_helper.rb:41:in `block (3 levels) in <top (required)>'
      # ./spec/rails_helper.rb:40:in `block (2 levels) in <top (required)>'

  44) ETLocal interface has a present sparse graph query for energy_power_turbine_hydrogen_demand
      Failure/Error:
        expect(InterfaceElement.items.detect do |item|
          item.key == key.to_sym
        end).to_not be_nil

        expected: not nil
             got: nil
      # ./spec/services/etsource_spec.rb:35:in `block (3 levels) in <top (required)>'
      # ./spec/rails_helper.rb:41:in `block (3 levels) in <top (required)>'
      # ./spec/rails_helper.rb:40:in `block (2 levels) in <top (required)>'

  45) ETLocal interface has a present sparse graph query for energy_power_solar_csp_solar_radiation_demand
      Failure/Error:
        expect(InterfaceElement.items.detect do |item|
          item.key == key.to_sym
        end).to_not be_nil

        expected: not nil
             got: nil
      # ./spec/services/etsource_spec.rb:35:in `block (3 levels) in <top (required)>'
      # ./spec/rails_helper.rb:41:in `block (3 levels) in <top (required)>'
      # ./spec/rails_helper.rb:40:in `block (2 levels) in <top (required)>'

  46) ETLocal interface has a present sparse graph query for agriculture_final_demand_hydrogen_demand
      Failure/Error:
        expect(InterfaceElement.items.detect do |item|
          item.key == key.to_sym
        end).to_not be_nil

        expected: not nil
             got: nil
      # ./spec/services/etsource_spec.rb:35:in `block (3 levels) in <top (required)>'
      # ./spec/rails_helper.rb:41:in `block (3 levels) in <top (required)>'
      # ./spec/rails_helper.rb:40:in `block (2 levels) in <top (required)>'

  47) ETLocal interface has a present sparse graph query for industry_final_demand_for_chemical_other_electricity_industry_chemicals_other_heatpump_water_water_electricity_parent_share
      Failure/Error:
        expect(InterfaceElement.items.detect do |item|
          item.key == key.to_sym
        end).to_not be_nil

        expected: not nil
             got: nil
      # ./spec/services/etsource_spec.rb:35:in `block (3 levels) in <top (required)>'
      # ./spec/rails_helper.rb:41:in `block (3 levels) in <top (required)>'
      # ./spec/rails_helper.rb:40:in `block (2 levels) in <top (required)>'

  48) ETLocal interface has a present sparse graph query for industry_final_demand_for_other_paper_electricity_industry_other_paper_heater_electricity_parent_share
      Failure/Error:
        expect(InterfaceElement.items.detect do |item|
          item.key == key.to_sym
        end).to_not be_nil

        expected: not nil
             got: nil
      # ./spec/services/etsource_spec.rb:35:in `block (3 levels) in <top (required)>'
      # ./spec/rails_helper.rb:41:in `block (3 levels) in <top (required)>'
      # ./spec/rails_helper.rb:40:in `block (2 levels) in <top (required)>'

  49) ETLocal interface has a present sparse graph query for industry_final_demand_for_other_hydrogen_industry_final_demand_for_other_food_hydrogen_parent_share
      Failure/Error:
        expect(InterfaceElement.items.detect do |item|
          item.key == key.to_sym
        end).to_not be_nil

        expected: not nil
             got: nil
      # ./spec/services/etsource_spec.rb:35:in `block (3 levels) in <top (required)>'
      # ./spec/rails_helper.rb:41:in `block (3 levels) in <top (required)>'
      # ./spec/rails_helper.rb:40:in `block (2 levels) in <top (required)>'

  50) ETLocal interface has a present sparse graph query for industry_final_demand_hydrogen_industry_final_demand_for_chemical_hydrogen_parent_share
      Failure/Error:
        expect(InterfaceElement.items.detect do |item|
          item.key == key.to_sym
        end).to_not be_nil

        expected: not nil
             got: nil
      # ./spec/services/etsource_spec.rb:35:in `block (3 levels) in <top (required)>'
      # ./spec/rails_helper.rb:41:in `block (3 levels) in <top (required)>'
      # ./spec/rails_helper.rb:40:in `block (2 levels) in <top (required)>'

  51) ETLocal interface has a present sparse graph query for industry_final_demand_network_gas_non_energetic_industry_final_demand_for_chemical_network_gas_non_energetic_parent_share
      Failure/Error:
        expect(InterfaceElement.items.detect do |item|
          item.key == key.to_sym
        end).to_not be_nil

        expected: not nil
             got: nil
      # ./spec/services/etsource_spec.rb:35:in `block (3 levels) in <top (required)>'
      # ./spec/rails_helper.rb:41:in `block (3 levels) in <top (required)>'
      # ./spec/rails_helper.rb:40:in `block (2 levels) in <top (required)>'

  52) ETLocal interface has a present sparse graph query for industry_final_demand_for_chemical_hydrogen_industry_final_demand_for_chemical_refineries_hydrogen_parent_share
      Failure/Error:
        expect(InterfaceElement.items.detect do |item|
          item.key == key.to_sym
        end).to_not be_nil

        expected: not nil
             got: nil
      # ./spec/services/etsource_spec.rb:35:in `block (3 levels) in <top (required)>'
      # ./spec/rails_helper.rb:41:in `block (3 levels) in <top (required)>'
      # ./spec/rails_helper.rb:40:in `block (2 levels) in <top (required)>'

  53) ETLocal interface has a present sparse graph query for industry_final_demand_hydrogen_industry_final_demand_for_other_hydrogen_parent_share
      Failure/Error:
        expect(InterfaceElement.items.detect do |item|
          item.key == key.to_sym
        end).to_not be_nil

        expected: not nil
             got: nil
      # ./spec/services/etsource_spec.rb:35:in `block (3 levels) in <top (required)>'
      # ./spec/rails_helper.rb:41:in `block (3 levels) in <top (required)>'
      # ./spec/rails_helper.rb:40:in `block (2 levels) in <top (required)>'

  54) ETLocal interface has a present sparse graph query for industry_final_demand_for_other_hydrogen_industry_final_demand_for_other_paper_hydrogen_parent_share
      Failure/Error:
        expect(InterfaceElement.items.detect do |item|
          item.key == key.to_sym
        end).to_not be_nil

        expected: not nil
             got: nil
      # ./spec/services/etsource_spec.rb:35:in `block (3 levels) in <top (required)>'
      # ./spec/rails_helper.rb:41:in `block (3 levels) in <top (required)>'
      # ./spec/rails_helper.rb:40:in `block (2 levels) in <top (required)>'

  55) ETLocal interface has a present sparse graph query for industry_final_demand_for_other_food_electricity_industry_other_food_heater_electricity_parent_share
      Failure/Error:
        expect(InterfaceElement.items.detect do |item|
          item.key == key.to_sym
        end).to_not be_nil

        expected: not nil
             got: nil
      # ./spec/services/etsource_spec.rb:35:in `block (3 levels) in <top (required)>'
      # ./spec/rails_helper.rb:41:in `block (3 levels) in <top (required)>'
      # ./spec/rails_helper.rb:40:in `block (2 levels) in <top (required)>'

  56) ETLocal interface has a present sparse graph query for industry_final_demand_for_chemical_hydrogen_industry_final_demand_for_chemical_other_hydrogen_parent_share
      Failure/Error:
        expect(InterfaceElement.items.detect do |item|
          item.key == key.to_sym
        end).to_not be_nil

        expected: not nil
             got: nil
      # ./spec/services/etsource_spec.rb:35:in `block (3 levels) in <top (required)>'
      # ./spec/rails_helper.rb:41:in `block (3 levels) in <top (required)>'
      # ./spec/rails_helper.rb:40:in `block (2 levels) in <top (required)>'

  57) ETLocal interface has a present sparse graph query for industry_final_demand_for_chemical_other_electricity_industry_chemicals_other_steam_recompression_electricity_parent_share
      Failure/Error:
        expect(InterfaceElement.items.detect do |item|
          item.key == key.to_sym
        end).to_not be_nil

        expected: not nil
             got: nil
      # ./spec/services/etsource_spec.rb:35:in `block (3 levels) in <top (required)>'
      # ./spec/rails_helper.rb:41:in `block (3 levels) in <top (required)>'
      # ./spec/rails_helper.rb:40:in `block (2 levels) in <top (required)>'

  58) ETLocal interface has a present sparse graph query for industry_final_demand_for_other_paper_electricity_industry_useful_demand_for_other_paper_electricity_parent_share
      Failure/Error:
        expect(InterfaceElement.items.detect do |item|
          item.key == key.to_sym
        end).to_not be_nil

        expected: not nil
             got: nil
      # ./spec/services/etsource_spec.rb:35:in `block (3 levels) in <top (required)>'
      # ./spec/rails_helper.rb:41:in `block (3 levels) in <top (required)>'
      # ./spec/rails_helper.rb:40:in `block (2 levels) in <top (required)>'

  59) ETLocal interface has a present sparse graph query for industry_final_demand_for_other_food_electricity_industry_useful_demand_for_other_food_electricity_parent_share
      Failure/Error:
        expect(InterfaceElement.items.detect do |item|
          item.key == key.to_sym
        end).to_not be_nil

        expected: not nil
             got: nil
      # ./spec/services/etsource_spec.rb:35:in `block (3 levels) in <top (required)>'
      # ./spec/rails_helper.rb:41:in `block (3 levels) in <top (required)>'
      # ./spec/rails_helper.rb:40:in `block (2 levels) in <top (required)>'

  60) ETLocal interface has a present sparse graph query for industry_final_demand_for_chemical_other_electricity_industry_chemicals_other_heater_electricity_parent_share
      Failure/Error:
        expect(InterfaceElement.items.detect do |item|
          item.key == key.to_sym
        end).to_not be_nil

        expected: not nil
             got: nil
      # ./spec/services/etsource_spec.rb:35:in `block (3 levels) in <top (required)>'
      # ./spec/rails_helper.rb:41:in `block (3 levels) in <top (required)>'
      # ./spec/rails_helper.rb:40:in `block (2 levels) in <top (required)>'

  61) ETLocal interface has a present sparse graph query for industry_final_demand_for_chemical_hydrogen_industry_final_demand_for_chemical_fertilizers_hydrogen_parent_share
      Failure/Error:
        expect(InterfaceElement.items.detect do |item|
          item.key == key.to_sym
        end).to_not be_nil

        expected: not nil
             got: nil
      # ./spec/services/etsource_spec.rb:35:in `block (3 levels) in <top (required)>'
      # ./spec/rails_helper.rb:41:in `block (3 levels) in <top (required)>'
      # ./spec/rails_helper.rb:40:in `block (2 levels) in <top (required)>'

  62) ETLocal interface has a present sparse graph query for industry_final_demand_for_chemical_other_electricity_industry_useful_demand_for_chemical_other_electricity_parent_share
      Failure/Error:
        expect(InterfaceElement.items.detect do |item|
          item.key == key.to_sym
        end).to_not be_nil

        expected: not nil
             got: nil
      # ./spec/services/etsource_spec.rb:35:in `block (3 levels) in <top (required)>'
      # ./spec/rails_helper.rb:41:in `block (3 levels) in <top (required)>'
      # ./spec/rails_helper.rb:40:in `block (2 levels) in <top (required)>'

  63) ETLocal interface has a present sparse graph query for energy_distribution_wood_energy_torrefaction_wood_parent_share
      Failure/Error:
        expect(InterfaceElement.items.detect do |item|
          item.key == key.to_sym
        end).to_not be_nil

        expected: not nil
             got: nil
      # ./spec/services/etsource_spec.rb:35:in `block (3 levels) in <top (required)>'
      # ./spec/rails_helper.rb:41:in `block (3 levels) in <top (required)>'
      # ./spec/rails_helper.rb:40:in `block (2 levels) in <top (required)>'

  64) ETLocal interface has a present sparse graph query for energy_distribution_wood_energy_production_wood_pellets_parent_share
      Failure/Error:
        expect(InterfaceElement.items.detect do |item|
          item.key == key.to_sym
        end).to_not be_nil

        expected: not nil
             got: nil
      # ./spec/services/etsource_spec.rb:35:in `block (3 levels) in <top (required)>'
      # ./spec/rails_helper.rb:41:in `block (3 levels) in <top (required)>'
      # ./spec/rails_helper.rb:40:in `block (2 levels) in <top (required)>'

  65) ETLocal interface has a present sparse graph query for energy_heater_for_heat_network_geothermal_energy_heat_network_steam_hot_water_share_setter
      Failure/Error:
        expect(InterfaceElement.items.detect do |item|
          item.key == key.to_sym
        end).to_not be_nil

        expected: not nil
             got: nil
      # ./spec/services/etsource_spec.rb:35:in `block (3 levels) in <top (required)>'
      # ./spec/rails_helper.rb:41:in `block (3 levels) in <top (required)>'
      # ./spec/rails_helper.rb:40:in `block (2 levels) in <top (required)>'

  66) ETLocal interface has a present sparse graph query for energy_heater_for_heat_network_coal_energy_heat_network_steam_hot_water_share_setter
      Failure/Error:
        expect(InterfaceElement.items.detect do |item|
          item.key == key.to_sym
        end).to_not be_nil

        expected: not nil
             got: nil
      # ./spec/services/etsource_spec.rb:35:in `block (3 levels) in <top (required)>'
      # ./spec/rails_helper.rb:41:in `block (3 levels) in <top (required)>'
      # ./spec/rails_helper.rb:40:in `block (2 levels) in <top (required)>'

  67) ETLocal interface has a present sparse graph query for energy_heater_for_heat_network_lignite_energy_heat_network_steam_hot_water_share_setter
      Failure/Error:
        expect(InterfaceElement.items.detect do |item|
          item.key == key.to_sym
        end).to_not be_nil

        expected: not nil
             got: nil
      # ./spec/services/etsource_spec.rb:35:in `block (3 levels) in <top (required)>'
      # ./spec/rails_helper.rb:41:in `block (3 levels) in <top (required)>'
      # ./spec/rails_helper.rb:40:in `block (2 levels) in <top (required)>'

  68) ETLocal interface has a present sparse graph query for energy_heater_for_heat_network_crude_oil_energy_heat_network_steam_hot_water_share_setter
      Failure/Error:
        expect(InterfaceElement.items.detect do |item|
          item.key == key.to_sym
        end).to_not be_nil

        expected: not nil
             got: nil
      # ./spec/services/etsource_spec.rb:35:in `block (3 levels) in <top (required)>'
      # ./spec/rails_helper.rb:41:in `block (3 levels) in <top (required)>'
      # ./spec/rails_helper.rb:40:in `block (2 levels) in <top (required)>'

Finished in 0.75365 seconds (files took 3.76 seconds to load)
416 examples, 68 failures
ChaelKruip commented 6 years ago

ETLocal interface includes input_buildings_district_heating_chp_network_gas_share

I find this error message not very helpful at the moment. Does it mean that the interface as an input which is not used anywhere? Or that is lacks an input?

grdw commented 6 years ago

I find this error message not very helpful at the moment. Does it mean that the interface as an input which is not used anywhere? Or that is lacks an input?

You shouldn't read it as an error - it's the spec that is failing. And the spec checks if the input (of the front-end of ETLocal) has a key called 'input_buildings_district_heating_chp_network_gas_share'.

I do however agree that it can be more descriptive

michieldenhaan commented 6 years ago

Tried to fix this here: https://github.com/quintel/etsource/pull/1700 The following inputs are intentionally not used in any query: input_buildings_district_heating_central_heat_network_share input_households_district_heating_central_heat_network_share

grdw commented 6 years ago
1) ETLocal's interface has a present DATASET_INPUT for input_percentage_of_old_residences)
     Failure/Error:
       expect(InterfaceElement.items.detect do |item|
         item.key.to_s == input
       end).to_not be_nil

       expected: not nil
            got: nil
     # ./spec/services/etsource_spec.rb:15:in `block (3 levels) in <top (required)>'
     # ./spec/rails_helper.rb:41:in `block (3 levels) in <top (required)>'
     # ./spec/rails_helper.rb:40:in `block (2 levels) in <top (required)>'

  2) ETLocal's interface has a present DATASET_INPUT for households_final_demand_steam_hot_water_demand)
     Failure/Error:
       expect(InterfaceElement.items.detect do |item|
         item.key.to_s == input
       end).to_not be_nil

       expected: not nil
            got: nil
     # ./spec/services/etsource_spec.rb:15:in `block (3 levels) in <top (required)>'
     # ./spec/rails_helper.rb:41:in `block (3 levels) in <top (required)>'
     # ./spec/rails_helper.rb:40:in `block (2 levels) in <top (required)>'

  3) ETLocal's interface has a present DATASET_INPUT for input_households_solar_pv_own_use_share)
     Failure/Error:
       expect(InterfaceElement.items.detect do |item|
         item.key.to_s == input
       end).to_not be_nil

       expected: not nil
            got: nil
     # ./spec/services/etsource_spec.rb:15:in `block (3 levels) in <top (required)>'
     # ./spec/rails_helper.rb:41:in `block (3 levels) in <top (required)>'
     # ./spec/rails_helper.rb:40:in `block (2 levels) in <top (required)>'

  4) ETLocal's interface has a present DATASET_INPUT for buildings_final_demand_steam_hot_water_demand)
     Failure/Error:
       expect(InterfaceElement.items.detect do |item|
         item.key.to_s == input
       end).to_not be_nil

       expected: not nil
            got: nil
     # ./spec/services/etsource_spec.rb:15:in `block (3 levels) in <top (required)>'
     # ./spec/rails_helper.rb:41:in `block (3 levels) in <top (required)>'
     # ./spec/rails_helper.rb:40:in `block (2 levels) in <top (required)>'

  5) ETLocal's interface has a present DATASET_INPUT for input_buildings_solar_pv_own_use_share)
     Failure/Error:
       expect(InterfaceElement.items.detect do |item|
         item.key.to_s == input
       end).to_not be_nil

       expected: not nil
            got: nil
     # ./spec/services/etsource_spec.rb:15:in `block (3 levels) in <top (required)>'
     # ./spec/rails_helper.rb:41:in `block (3 levels) in <top (required)>'
     # ./spec/rails_helper.rb:40:in `block (2 levels) in <top (required)>'

  6) ETLocal's interface has a present DATASET_INPUT for input_energy_power_ultra_supercritical_ccs_coal_demand
     Failure/Error:
       expect(InterfaceElement.items.detect do |item|
         item.key.to_s == input
       end).to_not be_nil

       expected: not nil
            got: nil
     # ./spec/services/etsource_spec.rb:15:in `block (3 levels) in <top (required)>'
     # ./spec/rails_helper.rb:41:in `block (3 levels) in <top (required)>'
     # ./spec/rails_helper.rb:40:in `block (2 levels) in <top (required)>'

  7) ETLocal's interface includes input_households_solar_pv_own_use_share
     Failure/Error: expect(dataset_inputs).to include(item.key.to_s)
       expected ["input_percentage_of_old_residences", "input_percentage_of_old_residences)", "input_industry_chemica...port_final_demand_hydrogen_demand", "transport_final_demand_for_road_compressed_network_gas_demand"] to include "input_households_solar_pv_own_use_share"
     # ./spec/services/etsource_spec.rb:25:in `block (3 levels) in <top (required)>'
     # ./spec/rails_helper.rb:41:in `block (3 levels) in <top (required)>'
     # ./spec/rails_helper.rb:40:in `block (2 levels) in <top (required)>'

  8) ETLocal's interface includes input_households_district_heating_central_heat_network_share
     Failure/Error: expect(dataset_inputs).to include(item.key.to_s)
       expected ["input_percentage_of_old_residences", "input_percentage_of_old_residences)", "input_industry_chemica...port_final_demand_hydrogen_demand", "transport_final_demand_for_road_compressed_network_gas_demand"] to include "input_households_district_heating_central_heat_network_share"
     # ./spec/services/etsource_spec.rb:25:in `block (3 levels) in <top (required)>'
     # ./spec/rails_helper.rb:41:in `block (3 levels) in <top (required)>'
     # ./spec/rails_helper.rb:40:in `block (2 levels) in <top (required)>'

  9) ETLocal's interface includes input_buildings_solar_pv_own_use_share
     Failure/Error: expect(dataset_inputs).to include(item.key.to_s)
       expected ["input_percentage_of_old_residences", "input_percentage_of_old_residences)", "input_industry_chemica...port_final_demand_hydrogen_demand", "transport_final_demand_for_road_compressed_network_gas_demand"] to include "input_buildings_solar_pv_own_use_share"
     # ./spec/services/etsource_spec.rb:25:in `block (3 levels) in <top (required)>'
     # ./spec/rails_helper.rb:41:in `block (3 levels) in <top (required)>'
     # ./spec/rails_helper.rb:40:in `block (2 levels) in <top (required)>'

  10) ETLocal's interface includes input_buildings_district_heating_central_heat_network_share
      Failure/Error: expect(dataset_inputs).to include(item.key.to_s)
        expected ["input_percentage_of_old_residences", "input_percentage_of_old_residences)", "input_industry_chemica...port_final_demand_hydrogen_demand", "transport_final_demand_for_road_compressed_network_gas_demand"] to include "input_buildings_district_heating_central_heat_network_share"
      # ./spec/services/etsource_spec.rb:25:in `block (3 levels) in <top (required)>'
      # ./spec/rails_helper.rb:41:in `block (3 levels) in <top (required)>'
      # ./spec/rails_helper.rb:40:in `block (2 levels) in <top (required)>'