Skip to content

Commit c57d7d3

Browse files
committed
build: Bump version to v0.24.2
1 parent de6c676 commit c57d7d3

File tree

4 files changed

+25
-7
lines changed

4 files changed

+25
-7
lines changed

doc/api_rstgen.py

Lines changed: 18 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -86,6 +86,7 @@ def _get_file_path(folder_name: str, file_name: str):
8686
"flunits",
8787
"settings_external",
8888
"datamodel/index",
89+
"settings_root",
8990
"tui/index",
9091
],
9192
"streaming_services": [
@@ -156,14 +157,27 @@ def _generate_api_source_rst_files(folder: str, files: list):
156157
with open(rst_file, "w", encoding="utf8") as rst:
157158
rst.write(f".. _ref_{file}:\n\n")
158159
if folder:
159-
rst.write(f"{file}\n")
160-
rst.write(f'{"="*(len(f"{file}"))}\n\n')
161-
rst.write(f".. automodule:: ansys.fluent.core.{folder}.{file}\n")
160+
if "root" in file:
161+
rst.write(f"solver.settings\n")
162+
rst.write(f'{"=" * (len("solver.settings"))}\n\n')
163+
rst.write(
164+
"The :ref:`ref_root` is the top-level solver settings object. It contains all\n"
165+
)
166+
rst.write(
167+
"other settings objects in a hierarchical structure.\n"
168+
)
169+
else:
170+
rst.write(f"{file}\n")
171+
rst.write(f'{"=" * (len(f"{file}"))}\n\n')
172+
rst.write(
173+
f".. automodule:: ansys.fluent.core.{folder}.{file}\n"
174+
)
162175
else:
163176
rst.write(f"ansys.fluent.core.{file}\n")
164177
rst.write(f'{"="*(len(f"ansys.fluent.core.{file}"))}\n\n')
165178
rst.write(f".. automodule:: ansys.fluent.core.{file}\n")
166-
_write_common_rst_members(rst_file=rst)
179+
if not "root" in file:
180+
_write_common_rst_members(rst_file=rst)
167181

168182

169183
def _generate_api_index_rst_files():

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ build-backend = "poetry.core.masonry.api"
55
[tool.poetry]
66
# Check https://python-poetry.org/docs/pyproject/ for all available sections
77
name = "ansys-fluent-core"
8-
version = "0.24.1"
8+
version = "0.24.2"
99
description = "PyFluent provides Pythonic access to Ansys Fluent"
1010
license = "MIT"
1111
authors = ["ANSYS, Inc. <[email protected]>"]

src/ansys/fluent/core/_version.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
"""
77

88
# major, minor, patch
9-
version_info = 0, 24, "1"
9+
version_info = 0, 24, 2
1010

1111
# Nice string for the version
1212
__version__ = ".".join(map(str, version_info))

src/ansys/fluent/core/post_objects/post_helper.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -103,11 +103,15 @@ def __init__(self, obj):
103103
self.obj = obj
104104
self.field_info = lambda: obj.get_root().session.fields.field_info
105105
self.field_data = lambda: obj.get_root().session.fields.field_data
106-
self.monitors = obj.get_root().session.monitors
107106
self.id = lambda: obj.get_root().session.id
108107
if obj.__class__.__name__ == "Surface":
109108
self.surface_api = PostAPIHelper._SurfaceAPI(obj)
110109

110+
@property
111+
def monitors(self):
112+
"""Returns the session monitors."""
113+
return self.obj.get_root().session.monitors
114+
111115
def remote_surface_name(self, local_surface_name):
112116
"""Returns the surface name."""
113117

0 commit comments

Comments
 (0)