Repository navigation
Conversation
Each product row, and each row buying a product or sending a waste to a
treatment, is written as SimaPro's exports of ecoinvent write it:
"Wheat grain {FR}| wheat production | U". The letter is S for a process
whose Type line says System. One function names the maker on both sides,
so a row and its maker's product row stay one string and link.
A row the database left without a supplier keeps the product's name, so it
comes back without one; the export says so. A maker stating no place, or a
name the parser would not read the place back from, keeps the name alone.
A supplier in a dependency that the file's own product row would name is
refused, as SimaPro would buy it from the file.
Owner
Author
|
Replaced by #937, on a branch named after the format. |
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.
Summary
A SimaPro export now writes every product the way SimaPro's exports of ecoinvent do, on the maker's product row and on every row buying from it:
Before, only a product several activities of the file made, or one bought from another database, carried its place and activity, ending in a bare bar.
{FR}whole, and the writer leaves a name that already states a place as it is, so names settle after one round trip.Evidence
./build.sh --test --werror: 5399 examples, 0 failures. fourmolu and hlint clean.SimaProWriterSpec: load, write, load, write gives the same bytes, with Butter still bought from Cow milk supply; a maker without place keeps the name alone; a System process ends inS; a name with braces of its own is left alone; an unlinked input comes back unlinked, with its note; a dependency supplier colliding with a product row is refused.Merge Danger
Door: two-way
Blast Radius: SimaPro exports
A SimaPro export read back gives its products new names, and so new identifiers, where the source named them without a place. Linking another database to a re-imported export by the bare product name stops matching; indexing a designated product under its bare name is left to a separate change.