sfepy-view does not work properly
Hello,
I tried to show the mesh in the following link with sfepy-view and encountered an error. What should I do to resolve this? https://sfepy.org/doc-devel/examples/acoustics-helmholtz_apartment.html
$ sfepy-view meshes/2d/helmholtz_apartment.vtk -e -2 mesh from meshes/2d/helmholtz_apartment.vtk: points: 401 cells: 752 bounds: [(-3.8979, 3.0979), (-2.19255, 2.46255), (0.0, 0.0)] scalars: node_groups, mat_id steps: 1 Traceback (most recent call last): File "/home/pyontaku14/anaconda3/bin/sfepy-view", line 33, in <module> sys.exit(load_entry_point('sfepy==2023.1', 'console_scripts', 'sfepy-view')()) File "/home/pyontaku14/sfepy/sfepy/scripts/resview.py", line 896, in main plotter = pv_plot(options.filenames, options, plotter=plotter) File "/home/pyontaku14/sfepy/sfepy/scripts/resview.py", line 479, in pv_plot pipe[-1].translate(shift, inplace=True) TypeError: translate() got an unexpected keyword argument 'inplace' $
Best regards, Takuo
What version of pyvista are you using? The inplace parameter is present from at least 0.35 (I can't find older docs). Updating to at the latest version of pyvista would certainly solve the error.
I know the setup.py minimum version checked is 0.23, but this may need to be updated.
On Sat, Apr 22, 2023 at 5:34 AM Takuo Fujita <pyontaku14@gmail.com> wrote:
Hello,
I tried to show the mesh in the following link with sfepy-view and encountered an error. What should I do to resolve this? https://sfepy.org/doc-devel/examples/acoustics-helmholtz_apartment.html
$ sfepy-view meshes/2d/helmholtz_apartment.vtk -e -2 mesh from meshes/2d/helmholtz_apartment.vtk: points: 401 cells: 752 bounds: [(-3.8979, 3.0979), (-2.19255, 2.46255), (0.0, 0.0)] scalars: node_groups, mat_id steps: 1 Traceback (most recent call last): File "/home/pyontaku14/anaconda3/bin/sfepy-view", line 33, in <module> sys.exit(load_entry_point('sfepy==2023.1', 'console_scripts', 'sfepy-view')()) File "/home/pyontaku14/sfepy/sfepy/scripts/resview.py", line 896, in main plotter = pv_plot(options.filenames, options, plotter=plotter) File "/home/pyontaku14/sfepy/sfepy/scripts/resview.py", line 479, in pv_plot pipe[-1].translate(shift, inplace=True) TypeError: translate() got an unexpected keyword argument 'inplace' $
Best regards, Takuo
SfePy mailing list -- sfepy@python.org To unsubscribe send an email to sfepy-leave@python.org https://mail.python.org/mailman3/lists/sfepy.python.org/ Member address: yosefm@gmail.com
participants (2)
-
Takuo Fujita
-
Yosef Meller