Skip to content

refactor: static class attributes #4174

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

Open
wants to merge 18 commits into
base: main
Choose a base branch
from

Conversation

prmukherj
Copy link
Collaborator

Refactor static class attributes access

@prmukherj prmukherj marked this pull request as ready for review June 19, 2025 05:57
@hpohekar
Copy link
Collaborator

@prmukherj Have you verified that settings API docs are rendering correctly by running Nightly Dev Doc Build workflow using this branch ?

@prmukherj
Copy link
Collaborator Author

@prmukherj Have you verified that settings API docs are rendering correctly by running Nightly Dev Doc Build workflow using this branch ?

I have run it: https://github.com/ansys/pyfluent/actions/runs/15754777339

Let's verify the results once it is generated.

@@ -139,8 +150,12 @@ def _populate_rst_from_settings(rst_dir, cls, version):
r.write(f'{"="*(len(cls_orig_name))}\n\n')
deprecated = getattr(cls, "_deprecated_version", None)
if deprecated:
release_version = "20" + cls._deprecated_version.replace(".", "R")
r.write(f".. deprecated:: Ansys {release_version}\n\n")
if float(cls._deprecated_version) < 22.2:
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Here if the deprecated version is less that 22.2, we provide the least version supported by pyfluent, i.e. 2022R2, as the versions before that are not supported by our FluentVersion enum,

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.

Looking up static class attributes within the client-side generated settings classes should not require is_active() = True precondition.
4 participants