ansys / pydpf-core

Data Processing Framework - Python Core
http://dpf.docs.pyansys.com/
MIT License
67 stars 25 forks source link

Bug in load_library with generate_operators=True #1110

Open janvonrickenbach opened 1 year ago

janvonrickenbach commented 1 year ago

Before submitting the issue

Description of the bug

I tried to generate the operator code with dpf.core.load_library(genereate_opeartors=True), but it looks like this has no effect. It tried with both a server in the docker container and from the installer (v241). For your reference, this is how the composite operator specifications look like:

image

Steps To Reproduce

You can reproduce this with:

from ansys.dpf.core import start_local_server, load_library
server = start_local_server(
    ansys_path=r"C:\Program Files\Ansys Inc\v241",
)

load_library("composite_operators", name="composites", server=server, generate_operators=True)

I would expect to see a composites folder under the dpf/core/operators folder.

Which Operating System causes the issue?

Windows

Which DPF/Ansys version are you using?

Ansys 2024 R1

Which Python version causes the issue?

3.9

Installed packages

accessible-pygments 0.0.4 aiohttp 3.8.5 aiosignal 1.3.1 alabaster 0.7.13 ansys-dpf-composites 0.3.dev0 D:\ANSYSDev\pydpf-composites ansys-dpf-core 0.9.0 ansys-dpf-gate 0.4.1 ansys-dpf-gatebin 0.4.1 ansys-grpc-dpf 0.8.1 ansys-sphinx-theme 0.10.2 anyio 3.7.1 appdirs 1.4.4 argon2-cffi 21.3.0 argon2-cffi-bindings 21.2.0 arrow 1.2.3 astroid 2.15.6 asttokens 2.2.1 async-lru 2.0.4 async-timeout 4.0.2 attrs 23.1.0 Babel 2.12.1 backcall 0.2.0 beautifulsoup4 4.12.2 bleach 6.0.0 bokeh 3.1.1 build 0.8.0 cachetools 5.3.1 certifi 2023.7.22 cffi 1.15.1 cfgv 3.3.1 charset-normalizer 3.2.0 colorama 0.4.6 comm 0.1.4 contourpy 1.1.0 coverage 7.2.7 cycler 0.11.0 debugpy 1.6.7 decorator 5.1.1 defusedxml 0.7.1 dill 0.3.7 distlib 0.3.7 docutils 0.19 exceptiongroup 1.1.2 executing 1.2.0 fastjsonschema 2.18.0 filelock 3.12.2 fonttools 4.42.0 fqdn 1.5.1 frozenlist 1.4.0 google-api-core 2.11.1 google-api-python-client 2.95.0 google-auth 2.17.3 google-auth-httplib2 0.1.0 googleapis-common-protos 1.60.0 grpcio 1.56.2 httplib2 0.22.0 identify 2.5.26 idna 3.4 imageio 2.27.0 imagesize 1.4.1 importlib-metadata 6.8.0 importlib-resources 6.0.1 iniconfig 2.0.0 ipycanvas 0.13.1 ipydatawidgets 4.3.5 ipyevents 2.0.1 ipykernel 6.25.1 ipython 8.12.2 ipython-genutils 0.2.0 ipyvtklink 0.2.3 ipywidgets 7.8.0 isoduration 20.11.0 isort 5.12.0 jaraco.classes 3.3.0 jedi 0.19.0 Jinja2 3.1.2 json5 0.9.14 jsonpointer 2.4 jsonschema 4.19.0 jsonschema-specifications 2023.7.1 jupyter_client 8.3.0 jupyter_core 5.3.1 jupyter-events 0.7.0 jupyter-lsp 2.2.0 jupyter_server 2.7.0 jupyter_server_proxy 4.0.0 jupyter_server_terminals 0.4.4 jupyterlab 4.0.4 jupyterlab-pygments 0.2.2 jupyterlab_server 2.24.0 jupyterlab-widgets 1.1.5 keyring 24.2.0 kiwisolver 1.4.4 lazy-object-proxy 1.9.0 linkify-it-py 2.0.2 Markdown 3.4.4 markdown-it-py 3.0.0 MarkupSafe 2.1.3 matplotlib 3.7.2 matplotlib-inline 0.1.6 mccabe 0.7.0 mdit-py-plugins 0.4.0 mdurl 0.1.2 mistune 3.0.1 more-itertools 10.1.0 multidict 6.0.4 mypy 1.4.1 mypy-extensions 1.0.0 nbclient 0.8.0 nbconvert 7.7.3 nbformat 5.9.2 nest-asyncio 1.5.7 nodeenv 1.8.0 notebook 7.0.2 notebook_shim 0.2.3 numpy 1.24.4 numpydoc 1.5.0 overrides 7.4.0 packaging 23.1 pandas 2.0.3 pandocfilters 1.5.0 panel 1.2.1 param 1.13.0 parso 0.8.3 pep517 0.13.0 pickleshare 0.7.5 Pillow 10.0.0 pip 23.1.2 pkginfo 1.9.6 platformdirs 3.10.0 pluggy 1.2.0 pooch 1.7.0 pre-commit 3.3.3 prometheus-client 0.17.1 prompt-toolkit 3.0.39 protobuf 4.23.4 psutil 5.9.5 pure-eval 0.2.2 pyasn1 0.5.0 pyasn1-modules 0.3.0 pycparser 2.21 pydata-sphinx-theme 0.13.3 Pygments 2.16.1 pylint 2.17.5 pypandoc 1.11 pyparsing 3.0.9 pytest 7.4.0 pytest-cov 3.0.0 pytest-rerunfailures 11.1.2 python-dateutil 2.8.2 python-json-logger 2.0.7 pythreejs 2.4.2 pytz 2023.3 pyvista 0.41.1 pyviz-comms 2.3.2 pywin32 306 pywin32-ctypes 0.2.2 pywinpty 2.0.11 PyYAML 6.0.1 pyzmq 25.1.0 readme-renderer 40.0 referencing 0.30.2 requests 2.31.0 requests-toolbelt 1.0.0 rfc3339-validator 0.1.4 rfc3986 2.0.0 rfc3986-validator 0.1.1 rich 13.5.2 rpds-py 0.9.2 rsa 4.9 scipy 1.9.3 scooby 0.7.2 Send2Trash 1.8.2 setuptools 68.0.0 simpervisor 1.0.0 six 1.16.0 sniffio 1.3.0 snowballstemmer 2.2.0 soupsieve 2.4.1 Sphinx 5.3.0 sphinx_autodoc_typehints 1.20.1 sphinx-copybutton 0.4.0 sphinx_design 0.3.0 sphinx-gallery 0.11.1 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 stack-data 0.6.2 terminado 0.17.1 tinycss2 1.2.1 tomli 2.0.1 tomlkit 0.12.1 tornado 6.3.2 tqdm 4.65.0 traitlets 5.9.0 traittypes 0.2.1 trame 3.1.0 trame-client 2.10.0 trame-server 2.11.7 trame-vtk 2.5.8 trame-vuetify 2.3.1 twine 4.0.2 typing_extensions 4.7.1 tzdata 2023.3 uc-micro-py 1.0.2 uri-template 1.3.0 uritemplate 4.1.1 urllib3 2.0.4 virtualenv 20.24.2 vtk 9.2.6 wcwidth 0.2.6 webcolors 1.13 webencodings 0.5.1 websocket-client 1.6.1 wheel 0.40.0 widgetsnbextension 3.6.5 wrapt 1.15.0 wslink 1.11.1 xyzservices 2023.7.0 yarl 1.9.2 zipp 3.16.2

janvonrickenbach commented 1 year ago

@PProfizi @greschd @roosre