Skip to content

Deprecation warnings for all variables since v.1.0 - #1299

Open
xjjiang wants to merge 27 commits into
OpenMDAO:mainfrom
xjjiang:Variable_deprecation
Open

xjjiang wants to merge 27 commits into
OpenMDAO:mainfrom
xjjiang:Variable_deprecation

Conversation

@xjjiang

@xjjiang xjjiang commented Sep 11, 2026 •

Copy link
Copy Markdown
Contributor

Summary

This PR targeted Issue #1289.

The warning messages in parse_inputs() are not printed out because warning is flag to be ignored. This is fixed.

Related Issues

Backwards incompatibilities

None

AI Usage

None

@jkirk5

jkirk5 commented Sep 14, 2026

Copy link
Copy Markdown
Contributor

I had some ideas on how to use the check on the original issue (#1289) - it is kind of similar to your idea but a little different

Comment thread aviary/utils/process_input_decks.py Outdated
@Kenneth-T-Moore

Copy link
Copy Markdown
Member

Here is a little migration guide I made that might help catch some more variables. I closed my PR since it is stale, and your solution is a better approach.

#1125

Comment thread aviary/utils/process_input_decks.py Outdated

@Kenneth-T-Moore Kenneth-T-Moore left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

This looks ready once the deprecated variable dictionary is moved into its own file in aviary/interface.

Comment thread aviary/utils/process_input_decks.py
Comment on lines +61 to +84
'dynamic:vehicle:Propulsion.fuel_flow_rate,': (
'dynamic:vehicle:Propulsion.fuel_flow_rate',
'1171',
'1.0.0',
'6/15/2026',
),
'dynamic:vehicle:Propulsion.fuel_flow_rate_negative': (
'dynamic:vehicle:Propulsion.fuel_flow_rate_negative',
'1171',
'1.0.0',
'6/15/2026',
),
'dynamic:vehicle:Propulsion.fuel_flow_rate_negative_total': (
'dynamic:vehicle:Propulsion.fuel_flow_rate_negative_total',
'1171',
'1.0.0',
'6/15/2026',
),
'dynamic:vehicle:Propulsion.fuel_flow_rate_total': (
'dynamic:vehicle:Propulsion.fuel_flow_rate_total',
'1223',
'1.0.0',
'8/19/2026',
),

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

"P" in propulsion incorrectly capitalized, changed variable names don't have "mass" in them (they are copies of original name)

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

And periods instead of colons

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

I changed "Propulsion." to "propulsion:" now.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

            FUEL_MASS_FLOW_RATE = 'fuel_flow_rate'
            FUEL_MASS_FLOW_RATE_NEGATIVE = 'fuel_flow_rate_negative'
            FUEL_MASS_FLOW_RATE_NEGATIVE_TOTAL = 'fuel_flow_rate_negative_total'
            FUEL_MASS_FLOW_RATE_TOTAL = 'fuel_flow_rate_total'

Should we change them to:

            FUEL_MASS_FLOW_RATE = 'fuel_mass_flow_rate'
            FUEL_MASS_FLOW_RATE_NEGATIVE = 'fuel_mass_flow_rate_negative'
            FUEL_MASS_FLOW_RATE_NEGATIVE_TOTAL = 'fuel_mass_flow_rate_negative_total'
            FUEL_MASS_FLOW_RATE_TOTAL = 'fuel_mass_flow_rate_total'

?

This branch has not been deployed

No deployments
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.

Add deprecation warnings for all variable hierarchy name changes since 1.0.

3 participants