Skip to content

Conversation

mkundu1
Copy link
Contributor

@mkundu1 mkundu1 commented Feb 13, 2024

This PR adds the backward compatbility support in PyFluent settings API using the child-aliases/command-aliases/query-aliases attributes in settings API.

A tree of alias-objects mimicking the original object tree is constructed on-access basis during runtime. For an object hierarchy A -> B -> C, If A1 is an alias of A, A1.B and A1.C are also aliases and the backward compatibility message for set_state is shown at all levels. The _Alias base class prints the backward compatibility message on various journaling points using the scheme_eval function which is passed through the get_root() function.

Please see the Fluent side PR for more details on flobject.py change.

I'm also incorporating changes from #2428 which simplifies some code requiring access to original settings object classes.

@mkundu1 mkundu1 force-pushed the feat/backward-compatibility branch from 42b75ad to 9b51dda Compare February 14, 2024 20:28
@mkundu1 mkundu1 merged commit 88495be into main Feb 14, 2024
@mkundu1 mkundu1 deleted the feat/backward-compatibility branch February 14, 2024 22:16
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.

Backward compatibity support Remove child classes from group class attributes in settings API

4 participants