Repository navigation
Fix MTG range attributes and test OpenAlea files - #118
Merged
Merged
Conversation
Contributor
Benchmark Results (Julia v1)Time benchmarks
Memory benchmarks
|
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.
Fixes #116.
read_mtgfailed on^/E1<<E35in OpenAlea’s Agraf file because it treated the plain range as a dotted one and tried to bind the sameColumnarAttrsto multiple nodes. Plain ranges now assign the row’s attributes to the final node on the row. Dotted ranges also assign them to both endpoints and every generated node, with independent attribute rows. The Apricot fixture also exercises spaces around a topology token and a whitespace-only integer cell.Six OpenAlea fixtures add 95,692 bytes of MTG data. The tests check node counts by scale against OpenAlea, the first Agraf range’s links and
distvalue, and the Apricot whitespace cases. A small local fixture checks all four range operators and verifies that changing an attribute on one node leaves the other nodes’ values intact.I added a short README in test/files/openalea to remember the source, license, and what each file covers. The smaller walnut and single-plant Wij10 samples cover the relevant input features of the larger files.
Other test files from openalea/mtg are not included here because they cover similar test cases (e.g.
test7.mtgtests for<<which is already covered byagraf.mtg) or test cases that were already included in the Julia repo.The audit also identified dynamic observation rows and multiple top-level plants in one file as separate reader limitations (I'll open a different PR on these).
Validation: all 6,825 Julia assertions passed on Julia 1.13.1 via Kaimon. The Julia reader opened 14 of the 16 upstream test MTGs, with matching counts per scale after excluding OpenAlea’s implicit scene.