-
Notifications
You must be signed in to change notification settings - Fork 201
Description
Before submitting the issue
- I have searched among the existing issues
- I am using a Python virtual environment
Description of the bug
in generic.general_methods, the method '_exception' tries to search for "error" in messages.
There is however an inconsistency between the if clause:
if "error" in messages:
and the indexing:
message_to_print = messages[messages.index("[error]")
note the square brackets around "[error]". This results in the indexing returning no items causing an error. The simple fix is removing the square brackets.
Note: I am using python 3.12.1
Steps To Reproduce
connect to a Ansys maxwell instance, create an invalid geometry by changing a project parameter which invalidates a geometry object. An error will be raised triggering _exception and causing the bug to be triggered
Which Operating System are you using?
Windows
Which Python version are you using?
3.10
Installed packages
alphashape==1.3.1
ansys-api-mapdl==0.5.1
ansys-api-platform-instancemanagement==1.0.0
ansys-dpf-core==0.10.1
ansys-dpf-post==0.6.0
ansys-mapdl-core==0.67.0
ansys-mapdl-reader==0.53.0
ansys-math-core==0.1.3
ansys-platform-instancemanagement==1.1.2
ansys-pythonnet==3.1.0rc3
ansys-tools-path==0.4.1
appdirs==1.4.4
attrs==23.2.0
bayesian-optimization==1.4.3
cachetools==5.3.2
casadi==3.6.5
certifi==2024.2.2
cffi==1.16.0
cftime==1.6.3
charset-normalizer==3.3.2
click==8.1.7
click-log==0.4.0
click-plugins==1.1.1
cligj==0.7.2
cloudpickle==3.0.0
clr-loader==0.2.6
colorama==0.4.6
contourpy==1.2.0
cycler==0.12.1
dask==2024.3.1
descartes==1.1.0
et-xmlfile==1.1.0
ezdxf==1.2.0
ffmpeg-python==0.2.0
fiona==1.9.5
fonttools==4.48.1
fsspec==2024.3.1
future==1.0.0
geomdl==5.3.1
geopandas==0.14.3
google-api-core==2.17.1
google-api-python-client==2.118.0
google-auth==2.27.0
google-auth-httplib2==0.2.0
googleapis-common-protos==1.62.0
grpcio==1.60.1
h5py==3.10.0
httplib2==0.22.0
idna==3.6
imageio==2.34.0
importlib-metadata==7.0.1
Jinja2==3.1.3
joblib==1.3.2
kiwisolver==1.4.5
locket==1.0.0
MarkupSafe==2.1.5
matplotlib==3.8.0
mplcursors==0.5.3
mpld3==0.5.10
mpmath==1.3.0
netCDF4==1.6.5
networkx==3.2.1
numpy==1.26.0
opencv-python==4.10.0.82
openpyxl==3.1.2
osmnx==1.9.1
packaging==23.2
pandas==2.1.1
partd==1.4.1
pillow==10.2.0
platformdirs==4.2.0
plumbum==1.8.2
polygonX==0.1
pooch==1.8.0
protobuf==3.20.3
psutil==5.9.8
pyaedt==0.7.4
pyaml==23.12.0
pyansys-tools-versioning==0.5.0
pyasn1==0.5.1
pyasn1-modules==0.3.0
pycparser==2.21
Pygments==2.17.2
pyiges==0.3.1
pyparsing==3.1.1
pyproj==3.6.1
PyQt6==6.6.1
PyQt6-Qt6==6.6.2
PyQt6-sip==13.6.0
python-dateutil==2.8.2
pytz==2024.1
pyvista==0.44.dev0
pywin32==306
PyYAML==6.0.1
requests==2.31.0
rpyc==5.3.1
rsa==4.9
Rtree==1.2.0
scikit-learn==1.4.0
scikit-optimize==0.9.0
scikit-rf==0.31.0
scipy==1.12.0
scooby==0.9.2
setuptools==69.1.0
shapely==2.0.2
simpy==4.1.1
six==1.16.0
SRTM.py==0.3.7
sympy==1.13.0
threadpoolctl==3.2.0
tk==0.1.0
toolz==0.12.1
tqdm==4.66.2
triangle==20230923
trimesh==4.3.1
typing_extensions==4.11.0
tzdata==2024.1
uritemplate==4.1.1
urllib3==2.2.0
utm==0.7.0
vedo==2024.5.1
vtk==9.3.0
xarray==2024.2.0
zipp==3.17.0