Skip to content

types: Initial stab at types#627

Draft
Gobot1234 wants to merge 22 commits intomainfrom
jhilton/types
Draft

types: Initial stab at types#627
Gobot1234 wants to merge 22 commits intomainfrom
jhilton/types

Conversation

@Gobot1234
Copy link
Collaborator

No description provided.

@Gobot1234 Gobot1234 changed the title types: Add initial guess at types types: Initial stab at types Dec 22, 2025
Gobot1234 and others added 6 commits December 22, 2025 05:37
Comment on lines -146 to -154
from ansys.fluent.visualization import Graphics

graphics_session = Graphics(session)
surface1 = graphics_session.Surfaces["surface-1"]
surface1.definition.type = "iso-surface"
surface1.definition.iso_surface.field= "velocity-magnitude"
surface1.definition.iso_surface.rendering= "contour"
surface1.definition.iso_surface.iso_value = 0.0
surface1.display("window-0")
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

revert these

elif obj.__class__.__name__ == "XYPlot":
elif isinstance(obj, XYPlot):
self._fetch_xy_data(obj)
elif obj.__class__.__name__ == "MonitorPlot":
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

This is suspicious

@Gobot1234
Copy link
Collaborator Author

note to self need to run pyupgrade on these as well

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Note to self: This is a very bugged file please relook

)

def __init__(self, field: str, surfaces: List[str], solver: Optional = None):
def __init__(self, field: str, surfaces: list[str], solver: Optional = None):
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

solver shouldn't be optional like that

@Gobot1234
Copy link
Collaborator Author

I need to go through the docs and strip the types as agreed in the pyfluent type checking issue

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.

1 participant