Repository navigation
Tell two flows of a target apart by the factors of the method it holds - #935
Merged
Merged
Conversation
A flow list can hold two flows under one name at one place, copied from two sources with CAS numbers written differently. Renaming refused both, so the exported flow kept a name the reading tool characterises nowhere. When the target also holds the factors of a method (a method collection, or an openLCA package with impact categories), the flow now takes the one the method characterises, if only one is, or, when all those it characterises carry the same factors per method, place and unit, the source's own identifier or the smallest: the choice changes no score that method gives. A candidate bearing the source's name still outweighs the others. The renaming report says how the target was chosen and names the flows passed over.
A CAS number can join a family of substances, fossil and biogenic carbon dioxide, whose factors tell the members apart, not which one the source is. The factor tie-break now looks only at candidates the source's name reached, else those a synonym pair reached. A zero written for a place is kept as a factor, since there it replaces the factor for everywhere. The report names the other candidates for a characterised choice too, and the factor key is a record.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
A flow list can hold the same substance twice, under one name at one place, copied from two sources that write its CAS number differently. Renaming refused to choose, so the exported flow kept a name the reading tool characterises nowhere, and scored zero there.
When the target also holds a method's factors (a method collection, or an openLCA package with impact categories), the renaming now:
A zero written for everywhere counts as no factor; a zero written for a place counts, since it replaces the factor for everywhere there. Factors that differ, or none at all, still leave the flow its name. The renaming report says
characterisedorsame factorsinrules, and names the other candidates incandidates. A target without factors behaves as before.An openLCA package used as a flow list lends the factors of the impact categories it holds. The documentation advises keeping only the method the reading tool scores with, since other methods score such twins differently.
Measured on a SimaPro database of about 6 000 elementary flows, exported for openLCA under its LCIA methods package 2.8.2 reduced to « EF 3.1 Method (adapted) »:
How to try it: add the method's
lcia_methods/andlcia_categories/folders to an openLCA flow-list package named in[[flow-lists]], export a database withflowsLikenaming that list, and read therulesandcandidatescolumns ofFLOW-RENAMING.csv.