Skip to content

Bad exposure of PropertyFieldsContainer #2152

Open
@PProfizi

Description

@PProfizi

Before submitting the issue

  • I have checked for Compatibility issues
  • I have searched among the existing issues
  • I am using a Python virtual environment

Description of the bug

While investigating why some input types do not render properly in the documentation (see here), I realized it is because they were recently changed to type DpfTypeCollection<CPropertyField> instead of CPropertyField. The problem is that the PropertyFieldsContainer or PropertyFieldCollection is not an actually available type in PyDPF.
All we have is a mock-up class created because it seems like we did not want to expose a PropertyFieldsContainer type.
Now that an operator requires it though, we need to properly expose it in PyDPF, most likely using the CollectionFactory.
The code generation scripts also need to now understand the DpfTypeCollection in a pin spec and translate it to the right PyDPF collection type.

Steps To Reproduce

https://dpf.docs.pyansys.com/version/stable/api/ansys.dpf.core.operators.utility.merge_weighted_fields_containers.html

Which Operating System causes the issue?

Windows

Which DPF/Ansys version are you using?

DPF Server 2025.2.pre0

Which Python version causes the issue?

3.11

Installed packages

NA

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions