ansys / pyansys-math

A Python repository for mathematical libraries
https://math.docs.pyansys.com/
MIT License
4 stars 2 forks source link

Bug located in sym() method #195

Open JimmyHe0527 opened 1 year ago

JimmyHe0527 commented 1 year ago

🔍 Before submitting the issue

🐞 Description of the bug

The code implementation for sym() does not work for a full matrix. It only checks the type of the input matrix. When a full matrix is passed, the function always returns false.

📝 Steps to reproduce

import ansys.math.core.math as pymath
import numpy as np

mm = pymath.AnsMath()
test = np.identity(3)
print( mm.matrix(test).sym() ) # False

💻 Which operating system are you using?

Windows

📀 Which ANSYS version are you using?

2023R2

🐍 Which Python version are you using?

3.10

📦 Installed packages

absl-py==1.4.0
aiohttp==3.8.5
aiosignal==1.3.1
alabaster==0.7.13
altgraph==0.17.3
ansicon==1.89.0
ansys-additive==0.12.1
ansys-api-additive==1.2.0
ansys-api-mapdl==0.5.1
ansys-api-mechanical==0.1.0
ansys-api-platform-instancemanagement==1.0.0b3
ansys-dpf-core==0.8.1
ansys-dpf-gate==0.3.1
ansys-dpf-gatebin==0.3.1
ansys-dpf-post==0.4.0
ansys-grpc-dpf==0.7.1
ansys-mapdl-core==0.64.1
ansys-mapdl-reader==0.52.13
ansys-math-core==0.1.3
ansys-mechanical-core==0.10.1
ansys-platform-instancemanagement==1.1.1
ansys-pythonnet==3.1.0rc1
ansys-tools-path==0.3.1
anyio==3.7.1
appdirs==1.4.4
argon2-cffi==21.3.0
argon2-cffi-bindings==21.2.0
arrow==1.2.3
asttokens==2.2.1
astunparse==1.6.3
async-lru==2.0.3
async-timeout==4.0.3
attrs==23.1.0
Babel==2.12.1
backcall==0.2.0
beautifulsoup4==4.12.2
bleach==6.0.0
blessed==1.20.0
blinker==1.6.2
bokeh==3.2.2
cachetools==5.3.0
certifi==2023.5.7
cffi==1.15.1
charset-normalizer==3.1.0
click==8.1.3
cloudpickle==2.2.1
clr-loader==0.2.6
colorama==0.4.6
comm==0.1.3
ConfigArgParse==1.5.3
contourpy==1.0.7
cx-Logging==3.1.0
cycler==0.11.0
dash==2.9.3
dash-core-components==2.0.0
dash-html-components==2.0.0
dash-table==5.0.0
debugpy==1.6.7
decorator==5.1.1
DeepXDE==1.9.1
defusedxml==0.7.1
dm-tree==0.1.8
docutils==0.20.1
et-xmlfile==1.1.0
exceptiongroup==1.1.2
executing==1.2.0
fastjsonschema==2.17.1
Flask==2.3.2
flatbuffers==23.5.9
flyingcircus==0.1.4.1
flyingcircus-numeric==0.1.1.4
fonttools==4.39.4
fortranformat==2.0.0
fqdn==1.5.1
frozenlist==1.4.0
gast==0.4.0
geomdl==5.3.1
google-api-core==2.11.0
google-api-python-client==2.86.0
google-auth==2.18.0
google-auth-httplib2==0.1.0
google-auth-oauthlib==0.4.6
google-pasta==0.2.0
googleapis-common-protos==1.59.0
grpcio==1.54.2
grpcio-health-checking==1.48.2
h5py==3.8.0
httplib2==0.22.0
idna==3.4
imageio==2.28.1
imagesize==1.4.1
importlib-metadata==6.6.0
ipycanvas==0.13.1
ipydatawidgets==4.3.5
ipyevents==2.0.1
ipykernel==6.25.1
ipympl==0.4.1
ipython==8.13.2
ipython-genutils==0.2.0
ipywidgets==8.0.7
isoduration==20.11.0
itsdangerous==2.1.2
jax==0.4.10
jedi==0.18.2
Jinja2==3.1.2
jinxed==1.2.0
joblib==1.2.0
json5==0.9.14
jsonpointer==2.4
jsonschema==4.17.3
jupyter==1.0.0
jupyter-console==6.6.3
jupyter-events==0.6.3
jupyter-lsp==2.2.0
jupyter_client==8.2.0
jupyter_core==5.3.0
jupyter_server==2.7.0
jupyter_server_terminals==0.4.4
jupyterlab==4.0.3
jupyterlab-pygments==0.2.2
jupyterlab-widgets==3.0.8
jupyterlab_server==2.24.0
keras==2.10.0
Keras-Preprocessing==1.1.2
kiwisolver==1.4.4
lazy_loader==0.2
libclang==16.0.0
lief==0.13.2
linkify-it-py==2.0.2
macholib==1.16.2
Markdown==3.4.3
markdown-it-py==3.0.0
MarkupSafe==2.1.2
matplotlib==3.7.1
matplotlib-inline==0.1.6
mdit-py-plugins==0.4.0
mdurl==0.1.2
meshio==5.3.4
mistune==3.0.1
ml-dtypes==0.1.0
modulegraph==0.19.5
mpmath==1.3.0
multidict==6.0.4
nbclient==0.8.0
nbconvert==7.7.3
nbformat==5.7.0
nest-asyncio==1.5.6
networkx==3.1
notebook==7.0.0
notebook_shim==0.2.3
numpy==1.25.1
oauthlib==3.2.2
open3d==0.17.0
openpyxl==3.1.2
opt-einsum==3.3.0
overrides==7.3.1
packaging==23.1
pandas==2.0.2
pandocfilters==1.5.0
param==1.13.0
parso==0.8.3
pefile==2023.2.7
pickleshare==0.7.5
Pillow==9.5.0
platformdirs==3.10.0
plotly==5.14.1
pooch==1.7.0
prometheus-client==0.17.1
prompt-toolkit==3.0.38
protobuf==3.19.6
protoc-gen-swagger==0.1.0
psutil==5.9.5
pure-eval==0.2.2
pyaml==23.5.9
pyansys-tools-versioning==0.3.3
pyasn1==0.5.0
pyasn1-modules==0.3.0
pycparser==2.21
Pygments==2.15.1
pyiges==0.2.1
pyinstaller-hooks-contrib==2023.6
pyparsing==3.0.9
pyrsistent==0.19.3
python-dateutil==2.8.2
python-json-logger==2.0.7
pytz==2023.3
pyvista==0.41.0
pyviz_comms==3.0.0
PyWavelets==1.4.1
pywin32==306
pywin32-ctypes==0.2.2
pywinpty==2.0.11
PyYAML==6.0
pyzmq==25.0.2
qtconsole==5.4.3
QtPy==2.3.1
raster-geometry==0.1.4.2
requests==2.30.0
requests-oauthlib==1.3.1
rfc3339-validator==0.1.4
rfc3986-validator==0.1.1
rich==13.4.2
rsa==4.9
scikit-image==0.21.0
scikit-learn==1.2.2
scikit-optimize==0.9.0
scipy==1.10.1
scooby==0.7.2
Send2Trash==1.8.2
setuptools-scm==7.1.0
six==1.16.0
sniffio==1.3.0
snowballstemmer==2.2.0
soupsieve==2.4.1
Sphinx==7.0.1
sphinx-notfound-page==0.8
sphinxcontrib-applehelp==1.0.4
sphinxcontrib-devhelp==1.0.2
sphinxcontrib-htmlhelp==2.0.1
sphinxcontrib-jsmath==1.0.1
sphinxcontrib-qthelp==1.0.3
sphinxcontrib-serializinghtml==1.1.5
sphinxemoji==0.2.0
spyder-kernels==2.4.4
stack-data==0.6.2
sympy==1.12
tenacity==8.2.2
tensorboard==2.10.1
tensorboard-data-server==0.6.1
tensorboard-plugin-wit==1.8.1
tensorflow==2.10.1
tensorflow-estimator==2.10.0
tensorflow-intel==2.12.0
tensorflow-io-gcs-filesystem==0.31.0
tensorflow-probability==0.18.0
termcolor==2.3.0
terminado==0.17.1
threadpoolctl==3.1.0
tifffile==2023.4.12
tinycss2==1.2.1
tomli==2.0.1
tornado==6.3.2
tqdm==4.65.0
traitlets==5.9.0
traittypes==0.2.1
trame==3.2.4
trame-client==2.11.2
trame-server==2.11.7
trame-vtk==2.5.8
trame-vuetify==2.3.1
trimesh==3.22.4
typing_extensions==4.5.0
tzdata==2023.3
uc-micro-py==1.0.2
uri-template==1.3.0
uritemplate==4.1.1
urllib3==1.26.15
vtk==9.2.6
wcwidth==0.2.6
webcolors==1.13
webencodings==0.5.1
websocket-client==1.6.1
Werkzeug==2.3.4
widgetsnbextension==4.0.8
wrapt==1.14.1
wslink==1.11.1
xyzservices==2023.7.0
yarl==1.9.2
zipp==3.15.0
clatapie commented 1 year ago

Thank you for opening this issue and reporting this bug. I will look into it.