Repository navigation
Conversation
The reader now reads the <allocation> keys and turns them into product shares, or into fractions per line when they differ from line to line. A key that cannot be applied leaves the block whole and the load says why. Coproducts are written in output group 2, the format's group for an allocated product, instead of group 1, which means an avoided product.
…keys leave out A dataset naming no reference took its first output read as a coproduct, even one listed at zero or filed in group 3. It now takes the first product of group 2 that makes something, and the load names it. A product the keys give no line is declared at 0 % aloud, and keys giving no product any line leave the block whole. The cache signature moves, since nothing changes type.
This branch has not been deployed
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.
Problem
An EcoSpold 1 dataset can make several products. It files them in output group 2 and divides its other lines between them with
<allocation>keys: a product, a fraction in percent, and the numbers of the lines the fraction applies to. The reader ignored those keys. A block whose lines are meant to be split by a mass or economic key loaded as if no key was given. The writer also put coproducts in output group 1, which the format defines as an avoided product system.Solution
Remarks
EcoSpold.Allocation1). The parser only collects the keys and the line numbers.How to test
The tests cover: one fraction per product, fractions line by line, a product with no line, totals other than 100, and each refusal. They also check that each dataset of a file reads its own keys, that a file loads the same alone or from its directory, and that an input buying a coproduct is linked to the block its number names. Without the coproduct entries, this last test links the input to the wrong block.