Skip to content

flobject updates: command instancing, and deprecate the <state_object>.__call__() alias for get_state() #5579

Open

Description

@seanpearsonuk

flobject doesn't currently have command instancing. Note that the object_model framework has that via the create_instance() method, but seems to have no command instance access method. Whatever we do in flobject should end up aligned with both object_model and with PyCFX's flobject. E.g.

cmd = cmd_cont.create() # implies an object_model name change for the command creation method: create_instance -> create.
cmd_ = cmd_cont[cmd.name()] # accesses an object representing the same underlying command instance
assert cmd_ .name() == cmd.name()
cmd.x = 4 # sets an argument
cmd() # executes

So that state access and command execution are not confused with each other, also deprecate __call__() as an alias to get_state() throughout flobject and object_model. PyCFX are committing to the same step.

Activity

  1. changed the title [-]flobject updates: command instancing, and deprecate the `<state_object>.__call__()` alias for `get_state`[/-] [+]flobject updates: command instancing, and deprecate the `<state_object>.__call__()` alias for `get_state()`[/+] on Nov 9, 2026
  2. moved this to 2027 Q1 Jan - Mar in PyFluent Public Roadmapon Nov 10, 2026
  3. moved this from 2027 Q1 Jan - Mar to 2026 Dec in PyFluent Public Roadmapon Nov 20, 2026
  4. self-assigned this
    on Nov 20, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions