Skip to content

recursive_calculation_to_object not available in bw2analyzer 0.10 but listed in legacy doc #24

@riccardobellini

Description

@riccardobellini

Hello,
we are currently using legacy Brightway2 platform, installed with conda from the conda-forge channel.

We need to traverse the supply chain and calculate the LCA score of each activity for reporting purposes, and have found the function bw2analyzer.utils.recursive_calculation_to_object to be exactly what we need in this case. The legacy documentation shows the function as part of the bw2analyzer.utils module, however, in the packaged distribution of bw2analyzer that we have in our conda environment that function is missing, even after an update to the latest version using the command conda update -c conda-forge brightway2.

I tried updating directly the package with conda update -c conda-forge brightway2, but nothing changes and it seems that the latest version available is already installed, and that version is 0.10.

The command conda search -c conda-forge 'bw2analyzer>=0.10' returns

# Name                       Version           Build  Channel             
bw2analyzer                     0.10    pyhd8ed1ab_0  conda-forge         
bw2analyzer                   0.11.4    pyhd8ed1ab_0  conda-forge         
bw2analyzer                   0.11.4    pyhd8ed1ab_1  conda-forge

but, as I can understand from this documentation page we cannot use the 0.11.* versions as those are only compatible with Brightway25.

The function is documented in bw2analyzer for the legacy project, and in the branch bw2legacy of this repository is in fact present, is there any reason why it's not packaged yet? Maybe we should use a different channel?
I remember we first installed Brightway using the cmutel channel in September 2022, and then switched over to conda-forge in order to update to latest version.

Here are the installed versions in our environment:

# Name                    Version                   Build  Channel
brightway2                2.4.3              pyhd8ed1ab_0    conda-forge
bw2analyzer               0.10               pyhd8ed1ab_0    conda-forge
bw2calc                   1.8.2           py310hff52083_0    conda-forge
bw2data                   3.6.6              pyhd8ed1ab_0    conda-forge
bw2io                     0.8.8              pyhd8ed1ab_1    conda-forge
bw2parameters             0.7                pyhd8ed1ab_0    conda-forge
bw_migrations             0.2                pyhd8ed1ab_0    conda-forge

Thanks in advance for the help and also for all the effort put in this project, it's really awesome.
Regards

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions