Skip to content

Commit 63d208a

Browse files
committed
Add the operator files to non-deleted files during code generation
1 parent 92019d4 commit 63d208a

File tree

1 file changed

+13
-7
lines changed

1 file changed

+13
-7
lines changed

.ci/code_generation.py

Lines changed: 13 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -11,17 +11,23 @@
1111
core.set_default_server_context(core.AvailableServerContexts.premium)
1212
core.start_local_server(config=core.AvailableServerConfigs.LegacyGrpcServer)
1313

14+
ignore_files = [
15+
"operator.mustache",
16+
"build.py",
17+
"specification.py",
18+
"translator.py",
19+
# Deprecated operator scripting names
20+
"gasket_deformation.py",
21+
"gasket_deformation_X.py",
22+
"gasket_deformation_XY.py",
23+
"gasket_deformation_XZ.py",
24+
]
25+
1426
local_dir = Path(__file__).parent
1527
TARGET_PATH = local_dir.parent / "src" / "ansys" / "dpf" / "core" / "operators"
1628
files = TARGET_PATH.glob("*")
1729
for file_path in files:
18-
if file_path.stem == "specification":
19-
continue
20-
if file_path.stem == "translator":
21-
continue
22-
if file_path.name == "build.py":
23-
continue
24-
if file_path.name == "operator.mustache":
30+
if file_path.name in ignore_files:
2531
continue
2632
try:
2733
if file_path.is_dir():

0 commit comments

Comments
 (0)