quintel / etengine

Calculation engine for the Energy Transition Model
https://energytransitionmodel.com/
MIT License
14 stars 7 forks source link

FEVER_DEMAND_CURVE_FOR_COUPLE seems broken #1419

Open mabijkerk opened 3 months ago

mabijkerk commented 3 months ago

When I run the FEVER_PRODUCTION_CURVE_FOR_COUPLE, I get expected results:

FEVER_PRODUCTION_CURVE_FOR_COUPLE(
  V(households_space_heater_combined_network_gas),
  V(households_useful_demand_for_space_heating_terraced_houses_1965_1984)
)

[
  941.3148533148487,
  ...,
  1,068.1549289644927,
]

However, when I run the FEVER_DEMAND_CURVE_FOR_COUPLE, I get an error:

private method `demand_curve_for' called for #<Qernel::FeverFacade::ConsumerAdapter node=households_useful_demand_for_space_heating_terraced_houses_1965_1984>

        consumer.demand_curve_for(producer).to_a
                ^^^^^^^^^^^^^^^^^
Did you mean?  demand_curve_from_activities

This is unexpected since they seem virtually the same function. It has low priority though, because we do not seem to use this GQL in any gqueries at the moment.

github-actions[bot] commented 1 month ago

This issue has had no activity for 60 days and will be closed in 7 days. Removing the "Stale" label or posting a comment will prevent it from being closed automatically. You can also add the "Pinned" label to ensure it isn't marked as stale in the future.