Skip to content

assertion errors in batch_ops test commands in standalone #4680

@millerj97

Description

@millerj97

🔍 Before submitting the issue

  • I have searched among the existing issues
  • I am using a Python virtual environment

🐞 Description of the bug

running commands from batch_ops test

def test_batch_ops_create_mesh():

is giving assertion errors for the below commands;

assert solver.scheme.eval("(case-valid?)")
assert "mesh-1" in mesh.get_object_names()

the below error is generated;


>>> assert solver.scheme.eval("(case-valid?)")
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
AssertionError
>>> assert "mesh-1" in mesh.get_object_names()
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
AssertionError

📝 Steps to reproduce

run below commands to reproduce;

import ansys.fluent.core as pyfluent
from ansys.fluent.core import examples


solver = pyfluent.launch_fluent(insecure_mode=True)
mesh = solver.results.graphics.mesh
case_file_name = examples.download_file(
    "mixing_elbow.cas.h5", "pyfluent/mixing_elbow"
)
with pyfluent.BatchOps(solver):
    solver.file.read(
        file_name=case_file_name, file_type="case", lightweight_setup=True
    )
    mesh["mesh-1"] = {}
    assert not solver.scheme.eval("(case-valid?)")
    assert "mesh-1" not in mesh.get_object_names()

then run assert statements;


assert solver.scheme.eval("(case-valid?)")
assert "mesh-1" in mesh.get_object_names()

💻 Which operating system are you using?

Linux

📀 Which ANSYS version are you using?

No response

🐍 Which Python version are you using?

3.10

📦 Installed packages

absl-py==2.3.1
ansys-api-fluent==0.3.36
ansys-api-platform-instancemanagement==1.1.3
ansys-api-tools-filetransfer==0.1.2
ansys-fluent-core==0.37.0
ansys-fluent-visualization==0.24.0
ansys-platform-instancemanagement==1.1.2
ansys-tools-common==0.3.0
ansys-tools-filetransfer==0.2.0
ansys-tools-local-product-launcher==0.2.0
ansys-units==0.9.1
appdirs==1.4.4
asttokens==3.0.1
astunparse==1.6.3
bcrypt==5.0.0
black==25.11.0
blinker==1.9.0
certifi==2025.11.12
cffi==2.0.0
cfgv==3.5.0
charset-normalizer==3.4.4
click==8.3.1
contourpy==1.3.2
cryptography==46.0.3
cycler==0.12.1
dash==3.3.0
dash-bootstrap-components==2.0.4
decorator==5.2.1
defusedxml==0.7.1
Deprecated==1.3.1
distlib==0.4.0
docker==7.1.0
et_xmlfile==2.0.0
exceptiongroup==1.3.1
executing==2.2.1
filelock==3.20.0
flake8==7.3.0
Flask==3.1.2
flatbuffers==25.9.23
fonttools==4.60.1
gast==0.6.0
google-pasta==0.2.0
googleapis-common-protos==1.72.0
grpcio==1.76.0
grpcio-health-checking==1.62.3
grpcio-status==1.62.3
h5py==3.15.1
identify==2.6.15
idna==3.11
ImageIO==2.37.2
importlib_metadata==8.7.0
invoke==2.2.1
ipython==8.37.0
isort==7.0.0
itsdangerous==2.2.0
jedi==0.19.2
Jinja2==3.1.6
joblib==1.5.2
kaleido==0.2.1
keras==3.12.0
kiwisolver==1.4.9
libclang==18.1.1
lxml==6.0.2
Markdown==3.10
markdown-it-py==4.0.0
MarkupSafe==3.0.3
matplotlib==3.10.7
matplotlib-inline==0.2.1
mccabe==0.7.0
mdurl==0.1.2
ml_dtypes==0.5.4
mypy_extensions==1.1.0
namex==0.1.0
narwhals==2.12.0
nest-asyncio==1.6.0
nltk==3.9.2
nodeenv==1.9.1
numpy==2.2.6
nvidia-nccl-cu12==2.28.9
openpyxl==3.1.5
opt_einsum==3.4.0
optree==0.18.0
packaging==25.0
pandas==2.3.3
paramiko==4.0.0
paramiko-expect==0.3.5
parso==0.8.5
pathspec==0.12.1
pexpect==4.9.0
pillow==12.0.0
platformdirs==4.5.0
plotly==6.5.0
pooch==1.8.2
pre_commit==4.5.0
prompt_toolkit==3.0.52
protobuf==4.25.8
psutil==7.1.3
ptyprocess==0.7.0
pure_eval==0.2.3
pyansys-tools-report==0.9.0
pycodestyle==2.14.0
pycparser==2.23
pyflakes==3.4.0
Pygments==2.19.2
PyNaCl==1.6.1
pyparsing==3.2.5
python-dateutil==2.9.0.post0
python-pptx==1.0.2
pytokens==0.3.0
pytz==2025.2
pyvista==0.46.4
PyYAML==6.0.3
regex==2025.11.3
requests==2.32.5
retrying==1.4.2
rich==14.2.0
scikit-learn==1.7.2
scipy==1.15.3
scooby==0.11.0
seaborn==0.13.2
six==1.17.0
stack-data==0.6.3
tensorboard==2.20.0
tensorboard-data-server==0.7.2
tensorflow==2.20.0
termcolor==3.2.0
threadpoolctl==3.6.0
tomli==2.3.0
tqdm==4.67.1
traitlets==5.14.3
typing_extensions==4.15.0
tzdata==2025.2
urllib3==2.5.0
virtualenv==20.35.4
vtk==9.5.2
wcwidth==0.2.14
Werkzeug==3.1.3
wrapt==2.0.1
xgboost==3.1.2
xlsxwriter==3.2.9
zipp==3.23.0

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugIssue, problem or error in PyFluent

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions