ansys-fluent-core 0.30.1__py3-none-any.whl → 0.30.2__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.

Potentially problematic release.


This version of ansys-fluent-core might be problematic. Click here for more details.

@@ -62,9 +62,9 @@ from ansys.fluent.core.utils import fldoc, get_examples_download_dir
62
62
  from ansys.fluent.core.utils.fluent_version import FluentVersion # noqa: F401
63
63
  from ansys.fluent.core.utils.setup_for_fluent import setup_for_fluent # noqa: F401
64
64
 
65
- __version__ = "0.30.1"
65
+ __version__ = "0.30.2"
66
66
 
67
- _VERSION_INFO = "Build date: March 18, 2025 07:37 UTC ShaID: 874d20e"
67
+ _VERSION_INFO = "Build date: March 18, 2025 18:36 UTC ShaID: d676e17"
68
68
  """
69
69
  Global variable indicating the version info of the PyFluent package.
70
70
  Build timestamp and commit hash are added to this variable during packaging.
@@ -45,7 +45,8 @@ import string
45
45
  import subprocess
46
46
  from typing import Any, Dict
47
47
  import uuid
48
- import xml.etree.ElementTree as ET
48
+
49
+ from defusedxml.ElementTree import parse
49
50
 
50
51
  import ansys.fluent.core as pyfluent
51
52
  from ansys.fluent.core import FluentMode, launch_fluent
@@ -137,7 +138,7 @@ def _populate_xml_helpstrings():
137
138
  if not Path(_XML_HELP_FILE).exists():
138
139
  return
139
140
 
140
- tree = ET.parse(_XML_HELP_FILE)
141
+ tree = parse(_XML_HELP_FILE)
141
142
  root = tree.getroot()
142
143
  help_contents_node = root.find(".//*[@id='flu_tui_help_contents']")
143
144
  field_help_node = help_contents_node.find(".//*[@id='fluent_tui_field_help']")
@@ -44,8 +44,8 @@ import os
44
44
  from os.path import dirname
45
45
  from pathlib import Path
46
46
  from typing import Dict, List
47
- import xml.etree.ElementTree as ET
48
47
 
48
+ from defusedxml.ElementTree import parse
49
49
  import numpy as np
50
50
 
51
51
  from ansys.fluent.core.solver.error_message import allowed_name_error_message
@@ -731,7 +731,7 @@ def _get_processed_string(input_string: bytes) -> str:
731
731
 
732
732
 
733
733
  def _get_case_file_name_from_flprj(flprj_file):
734
- tree = ET.parse(flprj_file)
734
+ tree = parse(flprj_file)
735
735
  root = tree.getroot()
736
736
  folder_name = root.find("Metadata").find("CurrentSimulation").get("value")[5:-1]
737
737
  # If the project file name begins with a digit then the node to find will be prepended
@@ -38,8 +38,8 @@ Example
38
38
  import os
39
39
  from os.path import dirname
40
40
  from pathlib import Path
41
- import xml.etree.ElementTree as ET
42
41
 
42
+ from defusedxml.ElementTree import parse
43
43
  import numpy as np
44
44
 
45
45
  from . import lispy
@@ -224,7 +224,7 @@ class DataFile:
224
224
 
225
225
 
226
226
  def _get_data_file_name_from_flprj(flprj_file):
227
- tree = ET.parse(flprj_file)
227
+ tree = parse(flprj_file)
228
228
  root = tree.getroot()
229
229
  folder_name = root.find("Metadata").find("CurrentSimulation").get("value")[5:-1]
230
230
  return root.find(folder_name).find("Input").find("Case").find("Target").get("value")