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: Options api rework #671

Merged
merged 12 commits into from
Jan 22, 2025
Merged

fix: Options api rework #671

merged 12 commits into from
Jan 22, 2025

Conversation

koubaa
Copy link
Collaborator

@koubaa koubaa commented Jan 21, 2025

Fixes #667

The implementation of options was a bit awkward. It still is, but this should be easier to follow now.

The main fix here is to make options with the same title/card index mutually exlcusive. Meaning when one such option is activated all other options are deactivated.

An example of this is the two options "TITLE" and "ID" of *CONSTRAINED_BEAM_IN_SOLID which have the same meaning.

Mohamed Koubaa added 4 commits January 21, 2025 14:08
also implement ability for options to be mutually exclusive
@koubaa koubaa requested a review from a team as a code owner January 21, 2025 21:27
@koubaa koubaa changed the title Options api rework fix: Options api rework Jan 21, 2025
@github-actions github-actions bot added documentation Improvements or additions to documentation testing Anything related to testing labels Jan 21, 2025
Copy link
Contributor

@kanthadya kanthadya left a comment

Choose a reason for hiding this comment

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

approved

@koubaa
Copy link
Collaborator Author

koubaa commented Jan 22, 2025

This also required handling of "shared fields" across options. Shared fields are when multiple cards use the same field conceptually, but pydyna-keywords is designed that each field in each card is it's own object. The code generation did not account for that so I had to work that into this fix.

I started to refactor the generation system around handler objects. It still isn't that straightforward but I think it's moving more in that direction.

@koubaa koubaa merged commit 9a5eb07 into main Jan 22, 2025
30 checks passed
@koubaa koubaa deleted the options-api-rework branch January 22, 2025 13:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Improvements or additions to documentation testing Anything related to testing
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Bug located in ansys-dyna-core.keywords
3 participants