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

TacsBuilder init refactor #255

Merged
merged 3 commits into from
Sep 29, 2023

Conversation

timryanb
Copy link
Collaborator

Refactoring MPhys TacsBuilder classes init arguments to be more consistent.
Right now we have a number of inputs that have to be passed in through an options dictionary and some that do not.
The mesh_file, for example, is passed in through the options dict, even though it is not optional.
I've broken each of the inputs out and given each their own argument in the init function make things more consistent.

Since this is a breaking change, I still allow for the old method (passing the inputs through an options dict) to work, with a DeprecationWarning raised in this case. I've tentatively set the full deprecation of this feature to take place in version 3.7.0 to give people time to update.

@timryanb timryanb requested a review from A-CGray September 29, 2023 14:36
@timryanb timryanb merged commit c53aa9d into smdogroup:master Sep 29, 2023
5 checks passed
@timryanb timryanb deleted the tacs_builder_init_refactor branch September 29, 2023 18:59
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.

2 participants