Skip to content

Problem when invoking consumption function #238

@sgiarols

Description

@sgiarols

Describe the bug

The function "consumption" is calculated over the total of commodity products. Care should be taken when by-products are present.

To Reproduce

Using the "consumption" as invoked in muse.quantities.consumption and adding commodities which are not the main output. The basis for the calculation is the total commodity outputs rather than the sole main products.

Context

Please, complete the following to better understand the system you are using to run MUSE.

  • Operative system (eg. Windows 10): MacOS
  • MUSE version (eg. 1.0.1): 1.1.0
  • Installation method (eg. pipx, pip, development mode): development mode
  • Python version (you can get this running python --version): 3.9

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    Status

    ✅ Done

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions