Skip to content

refactor: Update object_model's object hierarchy. - #5434

Merged
prmukherj merged 4 commits into
mainfrom
refactor/improve_object_model_hierarchy
Oct 8, 2026
Merged

prmukherj merged 4 commits into
mainfrom
refactor/improve_object_model_hierarchy

Conversation

@prmukherj

@prmukherj prmukherj commented Oct 5, 2026 •

Copy link
Copy Markdown
Collaborator

Context

rename/name/delete_child are methods specific to Named Objects but used to live in PyMenu which represents Singletons.

Change Summary

  1. Removed name(), rename(), delete_child(), and _raise_method_not_yet_implemented_exception() from PyMenu (singletons).
  2. Added a new PyNamedObject(PyMenu) class that holds those named-object-only methods.
  3. Updated PyNamedObjectContainer item accessors (iter, _get_item, getitem, get) to return PyNamedObject.
  4. Generated named-object item classes (_) now derive from PyNamedObject; singletons still derive from PyMenu.

Rationale

For better structured and hierarchical object_model structure.

Impact

A clear segregation of named objects from singletons as in settings (flobject).

@github-actions github-actions Bot added the enhancement Improve any current implemented feature label Oct 5, 2026
@codacy-production

Copy link
Copy Markdown

Up to standards ✅

🟢 Issues 0 issues

Results:
0 new issues

View in Codacy

NEW Get contextual insights on your PRs based on Codacy's metrics, along with PR and Jira context, without leaving GitHub. Enable AI reviewer
TIP This summary will be updated as you push new changes.

@prmukherj
prmukherj marked this pull request as ready for review October 6, 2026 04:07
@prmukherj prmukherj linked an issue Oct 6, 2026 that may be closed by this pull request
Comment thread src/ansys/fluent/core/services/object_model.py Outdated
Comment thread src/ansys/fluent/core/services/object_model.py Outdated
@prmukherj
prmukherj merged commit 41e75e4 into main Oct 8, 2026
36 checks passed
@prmukherj
prmukherj deleted the refactor/improve_object_model_hierarchy branch October 8, 2026 08:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement Improve any current implemented feature

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Update the datamodel_se object hierarchy.

5 participants