Skip to content

Commit a9c8c96

Browse files
mkundu1pyansys-ci-bot
authored andcommitted
fix: Skip paths which are not supported in the current Fluent version in builtin_settingsgen (#4404)
Co-authored-by: pyansys-ci-bot <[email protected]>
1 parent d3826f1 commit a9c8c96

File tree

2 files changed

+5
-0
lines changed

2 files changed

+5
-0
lines changed

doc/changelog.d/4404.fixed.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Skip paths which are not supported in the current Fluent version in builtin_settingsgen

src/ansys/fluent/core/codegen/builtin_settingsgen.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -96,10 +96,14 @@ def generate(version: str):
9696
for name, v in DATA.items():
9797
kind, path = v
9898
if isinstance(path, dict):
99+
version_supported = False
99100
for version_set, p in path.items():
100101
if version in version_set:
101102
path = p
103+
version_supported = True
102104
break
105+
if not version_supported:
106+
continue
103107
named_objects, final_type = _get_named_objects_in_path(root, path, kind)
104108
if kind == "NamedObject":
105109
kind = f"{final_type}NamedObject"

0 commit comments

Comments
 (0)