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

Fix bugs in mate processing #358

Merged
merged 2 commits into from
Jun 17, 2024
Merged

Fix bugs in mate processing #358

merged 2 commits into from
Jun 17, 2024

Conversation

kvid
Copy link
Collaborator

@kvid kvid commented May 22, 2024

The code processing mates used a mix of repeated connector look-ups and local connector variables, and one variable was used before it was assigned the correct value.

This error was detected when investigating the #355 bug report.

@kvid kvid mentioned this pull request May 25, 2024
25 tasks
@kvid kvid changed the base branch from master to release/v0.4.1-rc May 25, 2024 16:39
@kvid kvid requested a review from formatc1702 June 1, 2024 01:35
@kvid kvid changed the title Look-up mated connectors before mate processing Fix bugs in mate processing Jun 2, 2024
@amotl
Copy link
Member

amotl commented Jun 4, 2024

Reviewing this patch may need your attention, @formatc1702. Do you have a few spare cycles?

@kvid
Copy link
Collaborator Author

kvid commented Jun 7, 2024

@formatc1702 - Please review, but not merge yet this PR.

@kvid kvid force-pushed the release/v0.4.1-rc branch 2 times, most recently from db1e77f to ddb2cba Compare June 7, 2024 23:49
kvid added a commit that referenced this pull request Jun 11, 2024
Bug: The code processing mates used a mix of repeated connector
look-ups and local connector variables, and one variable was used
before it was assigned the correct value.

This fixes the #355 bug.

The local connector variables are now both assigned initially when
processing each mate, and used instead of repeated connector look-ups.
kvid added a commit that referenced this pull request Jun 11, 2024
Bug: Not all generated dot output could be changed by tweak entries. Observed
in #325 (comment)

Tweak processing must be the very last dot producing code to enable
tweaking any dot output.

Fix: Move all other dot producing code above Tweak processing.
@kvid kvid force-pushed the release/v0.4.1-rc branch from 661f3cf to 2d38267 Compare June 12, 2024 01:08
@formatc1702 formatc1702 marked this pull request as draft June 14, 2024 13:27
@formatc1702
Copy link
Collaborator

Set to draft to prevent premature merge as requested :)

kvid added 2 commits June 14, 2024 16:38
Symptom reported in #355: Unable to connect an arrow (mate) to
pins higher than 1 without failing: ValueError: X is not in list

Bug: The code processing mates used a mix of repeated connector
look-ups and local connector variables, and one variable was used
before it was assigned the correct value.

Fix: The local connector variables are now both assigned initially
before processing each mate, and used when processing instead of
repeated connector look-ups.
Bug: Not all generated dot output could be changed by tweak entries.
Seen in #325 (comment)

Tweak processing must be the very last dot producing code to enable
tweaking any dot output.

Fix: Move all other dot producing code above Tweak processing.
@kvid kvid marked this pull request as ready for review June 14, 2024 14:47
Copy link
Collaborator

@formatc1702 formatc1702 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good fix, thanks!

@formatc1702 formatc1702 merged commit ba84c54 into release/v0.4.1-rc Jun 17, 2024
4 checks passed
@formatc1702 formatc1702 deleted the fix355 branch June 17, 2024 19:28
formatc1702 pushed a commit that referenced this pull request Jun 17, 2024
Symptom reported in #355: Unable to connect an arrow (mate) to
pins higher than 1 without failing: ValueError: X is not in list

Bug: The code processing mates used a mix of repeated connector
look-ups and local connector variables, and one variable was used
before it was assigned the correct value.

Fix: The local connector variables are now both assigned initially
before processing each mate, and used when processing instead of
repeated connector look-ups.
kvid added a commit that referenced this pull request Jul 5, 2024
Symptom reported in #355: Unable to connect an arrow (mate) to
pins higher than 1 without failing: ValueError: X is not in list

Bug: The code processing mates used a mix of repeated connector
look-ups and local connector variables, and one variable was used
before it was assigned the correct value.

Fix: The local connector variables are now both assigned initially
before processing each mate, and used when processing instead of
repeated connector look-ups.
kvid added a commit that referenced this pull request Jul 5, 2024
Bug: Not all generated dot output could be changed by tweak entries.
Seen in #325 (comment)

Tweak processing must be the very last dot producing code to enable
tweaking any dot output.

Fix: Move all other dot producing code above Tweak processing.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Simple Harness fails to parse when referencing past Pin 1 [bug] ValueError: X is not in list
3 participants