Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Flip sign on waste exchanges in imported database #82

Merged

Commits on Aug 6, 2020

  1. Flip sign on waste exchanges in imported database

        Rationale: The convention for waste exchanges in some databases,
        notably the ecoivent database, is the following:
        - waste exchanges produced by an activity are stored as negative
          inputs
        - waste exchanges flowing into a waste treatment activity have a
          negative
        In SimaPro, produced waste are stored as positive inputs, and waste
        treatment datasets have positive outputs.
        If left as are, the supply of waste treatment services from the
        linked-to database "other" to imported activities would have the
        wrong sign.
        This function flips the sign on all inputs from database "other" if
        the production amount for that exchange in the activity for which it
        is the reference flow is negative.
    
        Note: the strategy needs to be run *after* matching with ecoinvent.
        Strategy should be run as follows:
        sp_imported.apply_strategy(functools.partial(flip_sign_on_waste, other="name_of_other"))
    PascalLesage committed Aug 6, 2020
    Configuration menu
    Copy the full SHA
    235f922 View commit details
    Browse the repository at this point in the history