From f55bc7565ab8d24560ce2928374e6eb1e5edca7f Mon Sep 17 00:00:00 2001 From: Harshal Pohekar Date: Fri, 5 Apr 2024 15:00:45 +0530 Subject: [PATCH] datamodelgen update 3 --- codegen/datamodelgen.py | 2 ++ doc/datamodel_rstgen.py | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/codegen/datamodelgen.py b/codegen/datamodelgen.py index eb8ac5b0203..32eefcc7672 100644 --- a/codegen/datamodelgen.py +++ b/codegen/datamodelgen.py @@ -166,6 +166,8 @@ def __init__( ) if not self._static_info["solverworkflow"]: del self._static_info["solverworkflow"] + if self.generate_py: + self._delete_generated_files() self._populate_static_info() def _get_static_info(self, rules: str, session: Session): diff --git a/doc/datamodel_rstgen.py b/doc/datamodel_rstgen.py index a6d321787a3..7352a1d4287 100644 --- a/doc/datamodel_rstgen.py +++ b/doc/datamodel_rstgen.py @@ -1,4 +1,4 @@ -"""Provides a module to generate the Fluent datamodel rst files.""" +"""Provides a module to generate the Fluent Datamodel rst files.""" from ansys.fluent.core import FluentMode, launch_fluent from ansys.fluent.core.utils.fluent_version import get_version_for_file_name