-
Notifications
You must be signed in to change notification settings - Fork 58
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 ordering in (co)domain number accessors for schemas #521
Conversation
Thank you, Andrew, for reporting the bug and finding a fix! Following the struct acsets refector, I am less familiar with this part of the codebase than I used to be, but I thought that It also makes me wonder: do the functions @olynch, it would be great if you could carefully review this issue. |
Review ChecklistDoes this PR follow the development guidelines? Following is a partial checklist: Tests
Documentation
Other
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes, I see the bug and the fix results in cleaner code, you can go ahead and merge this.
Should we also add the change to the |
Let's go ahead and change those functions too. If nothing else, the code will be shorter. |
af39123
to
0e32bde
Compare
Got those changes added, and it looks like tests are passing! |
Great, thanks Andrew! |
This PR provides a fix for Issue #520. The error was that the
adom_num
andacodom_num
functions assumed a certain ordering on thecodoms
field. This is now explicitly aligned to the order of theattrs
field.