-
Notifications
You must be signed in to change notification settings - Fork 6
types: Initial stab at types #627
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Conversation
for more information, see https://pre-commit.ci
for more information, see https://pre-commit.ci
# Conflicts: # src/ansys/fluent/interface/post_objects/meta.py # src/ansys/fluent/visualization/containers.py
for more information, see https://pre-commit.ci
| 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") |
There was a problem hiding this comment.
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": |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is suspicious
|
note to self need to run pyupgrade on these as well |
There was a problem hiding this comment.
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): |
There was a problem hiding this comment.
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
|
I need to go through the docs and strip the types as agreed in the pyfluent type checking issue |
for more information, see https://pre-commit.ci
No description provided.