ansys / pydpf-post

Data Processing Framework - Post Processing Module
https://post.docs.pyansys.com
MIT License
44 stars 10 forks source link

module 'ansys.dpf.post' has no attribute 'create_path_on_coordinates' #61

Closed Fkaule closed 2 years ago

Fkaule commented 2 years ago

hello, I installed the latest version of pydf-post and run the 05-result_on_path_of_coordinates example, but the following error occured:

     25 ###############################################################################
     26 # Create a DpfPath object
---> 27 path = post.create_path_on_coordinates(coordinates=coordinates)
     28 
     29 ###############################################################################

AttributeError: module 'ansys.dpf.post' has no attribute 'create_path_on_coordinates'

Regards Felix

PProfizi commented 2 years ago

Hello @Fkaule , I will need more information regarding the conditions in which you obtained this issue. I have not been able to reproduce it with the latest version of PyDPF-Post and using my environment. Could you please let me know:

Fkaule commented 2 years ago

os: Windows 10 20H2 ANSYS version : 2022R1 enviroment: jupyter notebook pip list: Package Version


-bconvert 6.0.7 -upyterlab-kite 2.0.2 aiohttp 3.8.1 aiosignal 1.2.0 alabaster 0.7.12 altair 4.1.0 anaconda-client 1.7.2 anaconda-navigator 2.1.1 ansys-dpf-core 0.4.0 ansys-dpf-post 0.2.2 ansys-grpc-dpf 0.4.0 ansys-tools 0.0.0 anyio 2.2.0 appdirs 1.4.4 argon2-cffi 20.1.0 array-to-latex 0.82 astroid 2.5 async-generator 1.10 async-timeout 4.0.2 attrs 20.3.0 autobahn 22.2.2 autograd 1.3 autograd-gamma 0.5.0 Automat 20.2.0 Babel 2.9.0 backcall 0.2.0 backports.functools-lru-cache 1.6.4 backports.tempfile 1.0 backports.weakref 1.0.post1 beautifulsoup4 4.9.3 bleach 3.3.0 brotlipy 0.7.0 cachetools 5.0.0 certifi 2021.10.8 cffi 1.14.5 chardet 4.0.0 charset-normalizer 2.0.12 click 7.1.2 clipboard 0.0.4 clyent 1.2.2 colorama 0.4.4 conda 4.11.0 conda-build 3.20.5 conda-content-trust 0+unknown conda-package-handling 1.7.3 conda-repo-cli 1.0.4 conda-token 0.3.0 conda-verify 3.4.2 constantly 15.1.0 cryptography 3.4.7 cycler 0.10.0 decorator 5.0.6 defusedxml 0.7.1 docutils 0.16 entrypoints 0.3 et-xmlfile 1.1.0 filelock 3.0.12 fonttools 4.25.0 frozenlist 1.3.0 future 0.18.2 ghp-import 1.1.0 gitdb 4.0.7 GitPython 3.1.14 glob2 0.7 gnuplot-kernel 0.4.1 google-api-core 2.7.1 google-api-python-client 2.40.0 google-auth 2.6.0 google-auth-httplib2 0.1.0 googleapis-common-protos 1.55.0 greenlet 1.0.0 grpcio 1.44.0 html5lib 1.1 httplib2 0.20.4 hyperlink 21.0.0 idna 2.10 imageio 2.16.1 imagesize 1.2.0 importlib-metadata 3.10.0 incremental 21.3.0 ipykernel 5.3.4 ipympl 0.6.3 ipython 7.20.0 ipython-genutils 0.2.0 ipywidgets 7.6.3 isort 5.8.0 jedi 0.18.0 Jinja2 2.11.3 json5 0.9.5 jsonschema 3.2.0 jupyter-book 0.10.2 jupyter-cache 0.4.2 jupyter-client 6.1.12 jupyter-contrib-core 0.3.3 jupyter-contrib-nbextensions 0.5.1 jupyter-core 4.7.1 jupyter-highlight-selected-word 0.2.0 jupyter-kite 2.0.2 jupyter-latex-envs 1.4.6 jupyter-nbextensions-configurator 0.4.1 jupyter-server 1.4.1 jupyter-sphinx 0.3.1 jupyterbook-latex 0.2.0 jupyterlab 3.0.6 jupyterlab-git 0.23.3 jupyterlab-kite 2.0.2 jupyterlab-pygments 0.1.2 jupyterlab-server 2.4.0 jupyterlab-widgets 1.0.0 jupytext 1.10.3 kaggle 1.5.12 kiwisolver 1.3.1 latexcodec 2.0.1 lazy-object-proxy 1.6.0 learntools 0.3.4 libarchive-c 2.9 linkify-it-py 1.0.1 lxml 4.6.3 markdown-it-py 0.6.2 MarkupSafe 1.1.1 matplotlib 3.5.0 mccabe 0.6.1 mdit-py-plugins 0.2.6 menuinst 1.4.16 metakernel 0.27.5 mistune 0.8.4 mkl-fft 1.3.0 mkl-random 1.2.1 mkl-service 2.3.0 mplcursors 0.4 mpmath 1.2.1 multidict 6.0.2 munkres 1.1.4 myst-nb 0.12.0 myst-parser 0.13.6 navigator-updater 0.2.1 nbclassic 0.2.6 nbclient 0.5.3 nbconvert 6.0.7 nbdime 2.1.0 nbformat 5.1.3 nest-asyncio 1.5.1 nested-lookup 0.2.22 notebook 6.3.0 numpy 1.20.1 olefile 0.46 openpyxl 3.0.7 packaging 20.9 pandas 1.2.4 pandocfilters 1.4.3 parso 0.8.2 patsy 0.5.1 pexpect 4.8.0 pickleshare 0.7.5 Pillow 9.0.1 pip 21.0.1 pkginfo 1.7.0 progressbar2 4.0.0 prometheus-client 0.10.1 prompt-toolkit 3.0.17 protobuf 3.19.4 psutil 5.8.0 psycopg2 2.8.6 ptyprocess 0.7.0 pyasn1 0.4.8 pyasn1-modules 0.2.8 pybtex 0.24.0 pybtex-docutils 1.0.0 pycosat 0.6.3 pycparser 2.20 pydata-sphinx-theme 0.4.3 pyee 7.0.4 Pygments 2.8.1 PyJWT 2.1.0 pylint 2.6.0 PyMySQL 1.0.2 pyOpenSSL 20.0.1 pyparsing 2.4.7 pyperclip 1.8.2 pyppeteer 0.2.2 PyQt5 5.15.6 PyQt5-Qt5 5.15.2 PyQt5-sip 12.9.0 pyrsistent 0.17.3 PySocks 1.7.1 python-dateutil 2.8.1 python-slugify 5.0.2 python-utils 3.1.0 pytz 2021.1 pyvista 0.33.3 pywin32 227 pywinpty 0.5.7 PyYAML 5.4.1 pyzmq 20.0.0 QtPy 1.9.0 rahmen-plots 0.0.3 reliability 0.5.5 requests 2.25.1 rise 5.7.1 rsa 4.8 ruamel-yaml-conda 0.15.100 SciencePlots 1.0.9 scipy 1.6.2 scooby 0.5.12 seaborn 0.11.1 Send2Trash 1.5.0 setuptools 52.0.0.post20210125 sip 4.19.13 six 1.15.0 smmap 3.0.5 sniffio 1.2.0 snowballstemmer 2.1.0 soupsieve 2.2.1 Sphinx 3.5.4 sphinx-book-theme 0.0.42 sphinx-comments 0.0.3 sphinx-copybutton 0.3.1 sphinx-panels 0.5.2 sphinx-thebe 0.0.8 sphinx-togglebutton 0.2.3 sphinxcontrib-applehelp 1.0.2 sphinxcontrib-bibtex 2.1.4 sphinxcontrib-devhelp 1.0.2 sphinxcontrib-htmlhelp 1.0.3 sphinxcontrib-jsmath 1.0.1 sphinxcontrib-qthelp 1.0.3 sphinxcontrib-serializinghtml 1.1.4 SQLAlchemy 1.3.24 statsmodels 0.12.2 sympy 1.7.1 tabulate 0.8.9 terminado 0.9.4 testpath 0.4.4 text-unidecode 1.3 toml 0.10.2 toolz 0.11.1 tornado 6.1 tqdm 4.59.0 traitlets 5.0.5 Twisted 22.2.0 twisted-iocpsupport 1.0.2 txaio 22.2.1 typing-extensions 4.1.1 uc-micro-py 1.0.1 ujson 4.0.2 uritemplate 4.1.1 urllib3 1.26.4 vega-datasets 0.9.0 vtk 9.0.3 wcwidth 0.2.5 webencodings 0.5.1 websockets 8.1 wheel 0.36.2 widgetsnbextension 3.5.1 win-inet-pton 1.1.0 wincertstore 0.2 wrapt 1.12.1 wslink 1.4.3 xlrd 2.0.1 xlwt 1.3.0 xmltodict 0.12.0 yarl 1.7.2 zipp 3.4.1 zope.interface 5.4.0

PProfizi commented 2 years ago

@Fkaule The create_path_on_coordinates function dates from PR #54 which was merged on December 29 2021. How old is your PyDPF-Post installation? Maybe pulling the current master branch if you cloned the repository, or uninstalling and reinstalling would solve this since the previous lines in the example seemed to work.

Fkaule commented 2 years ago

@PProfizi I did uninstalled pypdf and reinstalled and still the same problem.

(base) PS C:\WINDOWS\system32> pip install ansys-dpf-post
Collecting ansys-dpf-post
  Using cached ansys_dpf_post-0.2.2-py3-none-any.whl (29 kB)
Requirement already satisfied: ansys.dpf.core>=0.3.0 in c:\programdata\anaconda3\lib\site-packages (from ansys-dpf-post) (0.4.0)
Requirement already satisfied: vtk<9.1.0 in c:\programdata\anaconda3\lib\site-packages (from ansys-dpf-post) (9.0.3)
Requirement already satisfied: matplotlib in c:\programdata\anaconda3\lib\site-packages (from ansys-dpf-post) (3.5.0)
Requirement already satisfied: pyvista>=0.24.0 in c:\programdata\anaconda3\lib\site-packages (from ansys-dpf-post) (0.33.3)
Requirement already satisfied: progressbar2 in c:\programdata\anaconda3\lib\site-packages (from ansys.dpf.core>=0.3.0->ansys-dpf-post) (4.0.0)
Requirement already satisfied: psutil in c:\programdata\anaconda3\lib\site-packages (from ansys.dpf.core>=0.3.0->ansys-dpf-post) (5.8.0)
Requirement already satisfied: ansys.grpc.dpf>=0.2.3 in c:\programdata\anaconda3\lib\site-packages (from ansys.dpf.core>=0.3.0->ansys-dpf-post) (0.4.0)
Requirement already satisfied: numpy in c:\programdata\anaconda3\lib\site-packages (from ansys.dpf.core>=0.3.0->ansys-dpf-post) (1.20.1)
Requirement already satisfied: google-api-python-client in c:\programdata\anaconda3\lib\site-packages (from ansys.grpc.dpf>=0.2.3->ansys.dpf.core>=0.3.0->ansys-dpf-post) (2.40.0)
Requirement already satisfied: grpcio in c:\programdata\anaconda3\lib\site-packages (from ansys.grpc.dpf>=0.2.3->ansys.dpf.core>=0.3.0->ansys-dpf-post) (1.44.0)
Requirement already satisfied: protobuf in c:\programdata\anaconda3\lib\site-packages (from ansys.grpc.dpf>=0.2.3->ansys.dpf.core>=0.3.0->ansys-dpf-post) (3.19.4)
Requirement already satisfied: scooby>=0.5.1 in c:\programdata\anaconda3\lib\site-packages (from pyvista>=0.24.0->ansys-dpf-post) (0.5.12)
Requirement already satisfied: imageio in c:\programdata\anaconda3\lib\site-packages (from pyvista>=0.24.0->ansys-dpf-post) (2.16.1)
Requirement already satisfied: pillow in c:\programdata\anaconda3\lib\site-packages (from pyvista>=0.24.0->ansys-dpf-post) (9.0.1)
Requirement already satisfied: appdirs in c:\programdata\anaconda3\lib\site-packages (from pyvista>=0.24.0->ansys-dpf-post) (1.4.4)
Requirement already satisfied: wslink>=0.1.3 in c:\programdata\anaconda3\lib\site-packages (from vtk<9.1.0->ansys-dpf-post) (1.4.3)
Requirement already satisfied: Twisted>=17.5.0 in c:\programdata\anaconda3\lib\site-packages (from vtk<9.1.0->ansys-dpf-post) (22.2.0)
Requirement already satisfied: autobahn>=17.7.1 in c:\programdata\anaconda3\lib\site-packages (from vtk<9.1.0->ansys-dpf-post) (22.2.2)
Requirement already satisfied: hyperlink>=21.0.0 in c:\programdata\anaconda3\lib\site-packages (from autobahn>=17.7.1->vtk<9.1.0->ansys-dpf-post) (21.0.0)
Requirement already satisfied: cryptography>=3.4.6 in c:\programdata\anaconda3\lib\site-packages (from autobahn>=17.7.1->vtk<9.1.0->ansys-dpf-post) (3.4.7)
Requirement already satisfied: setuptools in c:\programdata\anaconda3\lib\site-packages (from autobahn>=17.7.1->vtk<9.1.0->ansys-dpf-post) (52.0.0.post20210125)
Requirement already satisfied: txaio>=21.2.1 in c:\programdata\anaconda3\lib\site-packages (from autobahn>=17.7.1->vtk<9.1.0->ansys-dpf-post) (22.2.1)
Requirement already satisfied: cffi>=1.12 in c:\programdata\anaconda3\lib\site-packages (from cryptography>=3.4.6->autobahn>=17.7.1->vtk<9.1.0->ansys-dpf-post) (1.14.5)
Requirement already satisfied: pycparser in c:\programdata\anaconda3\lib\site-packages (from cffi>=1.12->cryptography>=3.4.6->autobahn>=17.7.1->vtk<9.1.0->ansys-dpf-post) (2.20)
Requirement already satisfied: idna>=2.5 in c:\programdata\anaconda3\lib\site-packages (from hyperlink>=21.0.0->autobahn>=17.7.1->vtk<9.1.0->ansys-dpf-post) (2.10)
Requirement already satisfied: fonttools>=4.22.0 in c:\programdata\anaconda3\lib\site-packages (from matplotlib->ansys-dpf-post) (4.25.0)
Requirement already satisfied: packaging>=20.0 in c:\programdata\anaconda3\lib\site-packages (from matplotlib->ansys-dpf-post) (20.9)
Requirement already satisfied: kiwisolver>=1.0.1 in c:\programdata\anaconda3\lib\site-packages (from matplotlib->ansys-dpf-post) (1.3.1)
Requirement already satisfied: cycler>=0.10 in c:\programdata\anaconda3\lib\site-packages (from matplotlib->ansys-dpf-post) (0.10.0)
Requirement already satisfied: pyparsing>=2.2.1 in c:\programdata\anaconda3\lib\site-packages (from matplotlib->ansys-dpf-post) (2.4.7)
Requirement already satisfied: python-dateutil>=2.7 in c:\programdata\anaconda3\lib\site-packages (from matplotlib->ansys-dpf-post) (2.8.1)
Requirement already satisfied: six in c:\programdata\anaconda3\lib\site-packages (from cycler>=0.10->matplotlib->ansys-dpf-post) (1.15.0)
Requirement already satisfied: incremental>=21.3.0 in c:\programdata\anaconda3\lib\site-packages (from Twisted>=17.5.0->vtk<9.1.0->ansys-dpf-post) (21.3.0)
Requirement already satisfied: attrs>=19.2.0 in c:\programdata\anaconda3\lib\site-packages (from Twisted>=17.5.0->vtk<9.1.0->ansys-dpf-post) (20.3.0)
Requirement already satisfied: Automat>=0.8.0 in c:\programdata\anaconda3\lib\site-packages (from Twisted>=17.5.0->vtk<9.1.0->ansys-dpf-post) (20.2.0)
Requirement already satisfied: twisted-iocpsupport<2,>=1.0.2 in c:\programdata\anaconda3\lib\site-packages (from Twisted>=17.5.0->vtk<9.1.0->ansys-dpf-post) (1.0.2)
Requirement already satisfied: typing-extensions>=3.6.5 in c:\programdata\anaconda3\lib\site-packages (from Twisted>=17.5.0->vtk<9.1.0->ansys-dpf-post) (4.1.1)
Requirement already satisfied: zope.interface>=4.4.2 in c:\programdata\anaconda3\lib\site-packages (from Twisted>=17.5.0->vtk<9.1.0->ansys-dpf-post) (5.4.0)
Requirement already satisfied: constantly>=15.1 in c:\programdata\anaconda3\lib\site-packages (from Twisted>=17.5.0->vtk<9.1.0->ansys-dpf-post) (15.1.0)
Requirement already satisfied: aiohttp in c:\programdata\anaconda3\lib\site-packages (from wslink>=0.1.3->vtk<9.1.0->ansys-dpf-post) (3.8.1)
Requirement already satisfied: aiosignal>=1.1.2 in c:\programdata\anaconda3\lib\site-packages (from aiohttp->wslink>=0.1.3->vtk<9.1.0->ansys-dpf-post) (1.2.0)
Requirement already satisfied: multidict<7.0,>=4.5 in c:\programdata\anaconda3\lib\site-packages (from aiohttp->wslink>=0.1.3->vtk<9.1.0->ansys-dpf-post) (6.0.2)
Requirement already satisfied: charset-normalizer<3.0,>=2.0 in c:\programdata\anaconda3\lib\site-packages (from aiohttp->wslink>=0.1.3->vtk<9.1.0->ansys-dpf-post) (2.0.12)
Requirement already satisfied: yarl<2.0,>=1.0 in c:\programdata\anaconda3\lib\site-packages (from aiohttp->wslink>=0.1.3->vtk<9.1.0->ansys-dpf-post) (1.7.2)
Requirement already satisfied: frozenlist>=1.1.1 in c:\programdata\anaconda3\lib\site-packages (from aiohttp->wslink>=0.1.3->vtk<9.1.0->ansys-dpf-post) (1.3.0)
Requirement already satisfied: async-timeout<5.0,>=4.0.0a3 in c:\programdata\anaconda3\lib\site-packages (from aiohttp->wslink>=0.1.3->vtk<9.1.0->ansys-dpf-post) (4.0.2)
Requirement already satisfied: uritemplate<5,>=3.0.1 in c:\programdata\anaconda3\lib\site-packages (from google-api-python-client->ansys.grpc.dpf>=0.2.3->ansys.dpf.core>=0.3.0->ansys-dpf-post) (4.1.1)
Requirement already satisfied: google-auth-httplib2>=0.1.0 in c:\programdata\anaconda3\lib\site-packages (from google-api-python-client->ansys.grpc.dpf>=0.2.3->ansys.dpf.core>=0.3.0->ansys-dpf-post) (0.1.0)
Requirement already satisfied: google-api-core!=2.0.*,!=2.1.*,!=2.2.*,!=2.3.0,<3.0.0dev,>=1.31.5 in c:\programdata\anaconda3\lib\site-packages (from google-api-python-client->ansys.grpc.dpf>=0.2.3->ansys.dpf.core>=0.3.0->ansys-dpf-post) (2.7.1)
Requirement already satisfied: google-auth<3.0.0dev,>=1.16.0 in c:\programdata\anaconda3\lib\site-packages (from google-api-python-client->ansys.grpc.dpf>=0.2.3->ansys.dpf.core>=0.3.0->ansys-dpf-post) (2.6.0)
Requirement already satisfied: httplib2<1dev,>=0.15.0 in c:\programdata\anaconda3\lib\site-packages (from google-api-python-client->ansys.grpc.dpf>=0.2.3->ansys.dpf.core>=0.3.0->ansys-dpf-post) (0.20.4)
Requirement already satisfied: requests<3.0.0dev,>=2.18.0 in c:\programdata\anaconda3\lib\site-packages (from google-api-core!=2.0.*,!=2.1.*,!=2.2.*,!=2.3.0,<3.0.0dev,>=1.31.5->google-api-python-client->ansys.grpc.dpf>=0.2.3->ansys.dpf.core>=0.3.0->ansys-dpf-post) (2.25.1)
Requirement already satisfied: googleapis-common-protos<2.0dev,>=1.52.0 in c:\programdata\anaconda3\lib\site-packages (from google-api-core!=2.0.*,!=2.1.*,!=2.2.*,!=2.3.0,<3.0.0dev,>=1.31.5->google-api-python-client->ansys.grpc.dpf>=0.2.3->ansys.dpf.core>=0.3.0->ansys-dpf-post) (1.55.0)
Requirement already satisfied: cachetools<6.0,>=2.0.0 in c:\programdata\anaconda3\lib\site-packages (from google-auth<3.0.0dev,>=1.16.0->google-api-python-client->ansys.grpc.dpf>=0.2.3->ansys.dpf.core>=0.3.0->ansys-dpf-post) (5.0.0)
Requirement already satisfied: pyasn1-modules>=0.2.1 in c:\programdata\anaconda3\lib\site-packages (from google-auth<3.0.0dev,>=1.16.0->google-api-python-client->ansys.grpc.dpf>=0.2.3->ansys.dpf.core>=0.3.0->ansys-dpf-post) (0.2.8)
Requirement already satisfied: rsa<5,>=3.1.4 in c:\programdata\anaconda3\lib\site-packages (from google-auth<3.0.0dev,>=1.16.0->google-api-python-client->ansys.grpc.dpf>=0.2.3->ansys.dpf.core>=0.3.0->ansys-dpf-post) (4.8)
Requirement already satisfied: pyasn1<0.5.0,>=0.4.6 in c:\programdata\anaconda3\lib\site-packages (from pyasn1-modules>=0.2.1->google-auth<3.0.0dev,>=1.16.0->google-api-python-client->ansys.grpc.dpf>=0.2.3->ansys.dpf.core>=0.3.0->ansys-dpf-post) (0.4.8)
Requirement already satisfied: certifi>=2017.4.17 in c:\programdata\anaconda3\lib\site-packages (from requests<3.0.0dev,>=2.18.0->google-api-core!=2.0.*,!=2.1.*,!=2.2.*,!=2.3.0,<3.0.0dev,>=1.31.5->google-api-python-client->ansys.grpc.dpf>=0.2.3->ansys.dpf.core>=0.3.0->ansys-dpf-post) (2021.10.8)
Requirement already satisfied: chardet<5,>=3.0.2 in c:\programdata\anaconda3\lib\site-packages (from requests<3.0.0dev,>=2.18.0->google-api-core!=2.0.*,!=2.1.*,!=2.2.*,!=2.3.0,<3.0.0dev,>=1.31.5->google-api-python-client->ansys.grpc.dpf>=0.2.3->ansys.dpf.core>=0.3.0->ansys-dpf-post) (4.0.0)
Requirement already satisfied: urllib3<1.27,>=1.21.1 in c:\programdata\anaconda3\lib\site-packages (from requests<3.0.0dev,>=2.18.0->google-api-core!=2.0.*,!=2.1.*,!=2.2.*,!=2.3.0,<3.0.0dev,>=1.31.5->google-api-python-client->ansys.grpc.dpf>=0.2.3->ansys.dpf.core>=0.3.0->ansys-dpf-post) (1.26.4)
Requirement already satisfied: python-utils>=3.0.0 in c:\programdata\anaconda3\lib\site-packages (from progressbar2->ansys.dpf.core>=0.3.0->ansys-dpf-post) (3.1.0)
Installing collected packages: ansys-dpf-post
Successfully installed ansys-dpf-post-0.2.2
Fkaule commented 2 years ago

i installed from latest git repo and now create_path_on_coordinates works. But the contour plots from the example still doesn't work:

C:\ProgramData\Anaconda3\lib\site-packages\pyvista\plotting\plotting.py:1948: PyvistaDeprecationWarning: 
"stitle" is a depreciated keyword and will be removed in a future
release.

Use ``scalar_bar_args`` instead.  For example:

scalar_bar_args={'title': 'Scalar Bar Title'}

  warnings.warn(USE_SCALAR_BAR_ARGS, PyvistaDeprecationWarning)
PProfizi commented 2 years ago

@Fkaule Could you please share the line where you call plot_contour? Or is it the exact same as in the example (with no arguments)?

Fkaule commented 2 years ago

it's the example

"""
.. _ref_result_on_path:
ANSYS DPF-Post request results on specific path
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
This tutorial shows how to request the result over a
specific path of coordinates.
"""

###############################################################################
# Get started

from ansys.dpf import post
from ansys.dpf.post import examples
solution = post.load_solution(examples.static_rst)

###############################################################################
# Create a coordinates array on which request the result
coordinates = [[0.024, 0.03, 0.003]]
for i in range(1, 51):
    coord_copy = coordinates[0].copy()
    coord_copy[1] = coord_copy[0] + i * 0.001
    coordinates.append(coord_copy)

###############################################################################
# Create a DpfPath object
path = post.create_path_on_coordinates(coordinates=coordinates)

###############################################################################
# Request the result on it
stress = solution.stress(path=path)

###############################################################################
# Plot the result
stress_eqv = stress.von_mises
stress_eqv.plot_contour()
PProfizi commented 2 years ago

Hello @Fkaule, sorry for the delay. When you say plot_contour does not work, is it related to #62? Or is it another issue?

Fkaule commented 2 years ago

Hello @Fkaule, sorry for the delay. When you say plot_contour does not work, is it related to #62? Or is it another issue?

yes, it's the same problem from #62

PProfizi commented 2 years ago

Ok then, I will be closing this issue and keep looking at #62. BTW @Fkaule I saw from your pip list that you do not use a specific virtual environment for this, so the problem might come from incompatibilities between previously installed packages and our requirements (which we might want to tighten). Could you check if possible if you still have the problem when creating a virtual environment and installing only DPF in it to run the example? I can detail the steps in you need.