Closed grdw closed 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?
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
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
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)>'
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):
Has no direct one-to-one sparse graph key for: