
Hi all.
Trying out the interactive example from the tutorial, after calling pb.save_regions_as_groups() I get a plot with only one view in sfepy-view:
sfepy-view -e regions.vtk -2 --grid-vector2 "[2, 0, 0]"
[image: image.png] This is instead of 3 side-by-side regions shown in the tutorial. I checked and couldn't find anything I was doing different than the tutorial. The output from saving the regions lists all 3 regions, and the names appear in the output.
I also tried digging a bit into the code and saving the VTK as ascii format. There is one mesh and three fields in the file.
What am I missing or doing wrong?
Thanks, Yosef Meller.

Hi Yosef
On 2/9/23 14:42, Yosef Meller wrote:
Hi all.
Trying out the interactive example from the tutorial, after calling pb.save_regions_as_groups() I get a plot with only one view in sfepy-view:
sfepy-view -e regions.vtk -2 --grid-vector2 "[2, 0, 0]"
There is --grid-vector1 in the tutorial. But even this should show three fields. Can you try just
sfepy-view -e regions.vtk
without options?
[image: image.png] This is instead of 3 side-by-side regions shown in the tutorial. I checked and couldn't find anything I was doing different than the tutorial. The output from saving the regions lists all 3 regions, and the names appear in the output.
I also tried digging a bit into the code and saving the VTK as ascii format. There is one mesh and three fields in the file.
What am I missing or doing wrong?
It might be a pyvista-related issues. Can you try another VTK viewer? (e.g. vedo, paraview, ...)
r.

On Thu, Feb 9, 2023 at 3:57 PM Robert Cimrman <cimrman3@ntc.zcu.cz> wrote:
Hi Yosef
On 2/9/23 14:42, Yosef Meller wrote:
Hi all.
Trying out the interactive example from the tutorial, after calling pb.save_regions_as_groups() I get a plot with only one view in sfepy-view:
sfepy-view -e regions.vtk -2 --grid-vector2 "[2, 0, 0]"
There is --grid-vector1 in the tutorial.
Sorry, the 2 is a leftover from my experiments with other flags.
But even this should show three fields. Can you try just
sfepy-view -e regions.vtk
without options?
Still only one plot, without options or with grid-vector1
[image: image.png]
It might be a pyvista-related issues. Can you try another VTK viewer? (e.g. vedo, paraview, ...)
Paraview gives me only one object in view.

three fields. Choosing each one displays the correct result. so at least that's a workaround.
On Thu, Feb 9, 2023 at 4:51 PM Robert Cimrman <cimrman3@ntc.zcu.cz> wrote:
On 2/9/23 15:18, Yosef Meller wrote:
It might be a pyvista-related issues. Can you try another VTK viewer? (e.g. vedo, paraview, ...)
Paraview gives me only one object in view.
And the button/drop down menu "solid color" shows the three fields or a single one?
r.

So it is a visualization issue - do you have the latest sfepy release or earlier? Maybe updating sfepy and pyvista would help.
r.
On 2/9/23 16:57, Yosef Meller wrote:
three fields. Choosing each one displays the correct result. so at least that's a workaround.
On Thu, Feb 9, 2023 at 4:51 PM Robert Cimrman <cimrman3@ntc.zcu.cz> wrote:
On 2/9/23 15:18, Yosef Meller wrote:
It might be a pyvista-related issues. Can you try another VTK viewer? (e.g. vedo, paraview, ...)
Paraview gives me only one object in view.
And the button/drop down menu "solid color" shows the three fields or a single one?
r.

I have pyvista 0.38.1 and sfepy 2022.4, both seem to be the latest releases. Maybe we can go about it the other way: is there an environment with version numbers known to work? I can try a lock file and see if it helps.
On Thu, Feb 9, 2023 at 8:06 PM Robert Cimrman <cimrman3@ntc.zcu.cz> wrote:
So it is a visualization issue - do you have the latest sfepy release or earlier? Maybe updating sfepy and pyvista would help.
r.
On 2/9/23 16:57, Yosef Meller wrote:
three fields. Choosing each one displays the correct result. so at least that's a workaround.
On Thu, Feb 9, 2023 at 4:51 PM Robert Cimrman <cimrman3@ntc.zcu.cz> wrote:
On 2/9/23 15:18, Yosef Meller wrote:
It might be a pyvista-related issues. Can you try another VTK viewer? (e.g. vedo, paraview, ...)
Paraview gives me only one object in view.
And the button/drop down menu "solid color" shows the three fields or a single one?
r.

I had 0.37.0 (pip-installed) and it worked, now I tried updating to 0.38.1 and it behaves as you report - only a single field is visible - the last one added to the view.
FWIW I can view the other fields using the -f option:
sfepy-view -e regions.vtk -f Gamma1:p0
But it works one field at a time only.
r.
On 2/9/23 19:35, Yosef Meller wrote:
I have pyvista 0.38.1 and sfepy 2022.4, both seem to be the latest releases. Maybe we can go about it the other way: is there an environment with version numbers known to work? I can try a lock file and see if it helps.
On Thu, Feb 9, 2023 at 8:06 PM Robert Cimrman <cimrman3@ntc.zcu.cz> wrote:
So it is a visualization issue - do you have the latest sfepy release or earlier? Maybe updating sfepy and pyvista would help.
r.
On 2/9/23 16:57, Yosef Meller wrote:
three fields. Choosing each one displays the correct result. so at least that's a workaround.
On Thu, Feb 9, 2023 at 4:51 PM Robert Cimrman <cimrman3@ntc.zcu.cz> wrote:
On 2/9/23 15:18, Yosef Meller wrote:
It might be a pyvista-related issues. Can you try another VTK viewer? (e.g. vedo, paraview, ...)
Paraview gives me only one object in view.
And the button/drop down menu "solid color" shows the three fields or a single one?
r.

0.37 works for me. Thanks.
On Thu, Feb 9, 2023 at 11:26 PM Robert Cimrman <cimrman3@ntc.zcu.cz> wrote:
I had 0.37.0 (pip-installed) and it worked, now I tried updating to 0.38.1 and it behaves as you report - only a single field is visible - the last one added to the view.
FWIW I can view the other fields using the -f option:
sfepy-view -e regions.vtk -f Gamma1:p0
But it works one field at a time only.
r.
On 2/9/23 19:35, Yosef Meller wrote:
I have pyvista 0.38.1 and sfepy 2022.4, both seem to be the latest releases. Maybe we can go about it the other way: is there an environment with version numbers known to work? I can try a lock file and see if it helps.
On Thu, Feb 9, 2023 at 8:06 PM Robert Cimrman <cimrman3@ntc.zcu.cz> wrote:
So it is a visualization issue - do you have the latest sfepy release or earlier? Maybe updating sfepy and pyvista would help.
r.
On 2/9/23 16:57, Yosef Meller wrote:
three fields. Choosing each one displays the correct result. so at least that's a workaround.
On Thu, Feb 9, 2023 at 4:51 PM Robert Cimrman <cimrman3@ntc.zcu.cz> wrote:
On 2/9/23 15:18, Yosef Meller wrote:
> It might be a pyvista-related issues. Can you try another VTK viewer? > (e.g. > vedo, paraview, ...) > Paraview gives me only one object in view.
And the button/drop down menu "solid color" shows the three fields or a single one?
r.

exploring further, this comes from an unhandled depreciation in Pyvista. Opened a PR with a fix: https://github.com/sfepy/sfepy/pull/939
On Thu, Feb 9, 2023 at 11:43 PM Yosef Meller <yosefm@gmail.com> wrote:
0.37 works for me. Thanks.
On Thu, Feb 9, 2023 at 11:26 PM Robert Cimrman <cimrman3@ntc.zcu.cz> wrote:
I had 0.37.0 (pip-installed) and it worked, now I tried updating to 0.38.1 and it behaves as you report - only a single field is visible - the last one added to the view.
FWIW I can view the other fields using the -f option:
sfepy-view -e regions.vtk -f Gamma1:p0
But it works one field at a time only.
r.
On 2/9/23 19:35, Yosef Meller wrote:
I have pyvista 0.38.1 and sfepy 2022.4, both seem to be the latest releases. Maybe we can go about it the other way: is there an environment with version numbers known to work? I can try a lock file and see if it helps.
On Thu, Feb 9, 2023 at 8:06 PM Robert Cimrman <cimrman3@ntc.zcu.cz> wrote:
So it is a visualization issue - do you have the latest sfepy release or earlier? Maybe updating sfepy and pyvista would help.
r.
On 2/9/23 16:57, Yosef Meller wrote:
three fields. Choosing each one displays the correct result. so at least that's a workaround.
On Thu, Feb 9, 2023 at 4:51 PM Robert Cimrman <cimrman3@ntc.zcu.cz> wrote:
On 2/9/23 15:18, Yosef Meller wrote: >> It might be a pyvista-related issues. Can you try another VTK viewer? >> (e.g. >> vedo, paraview, ...) >> > Paraview gives me only one object in view. >
And the button/drop down menu "solid color" shows the three fields or a single one?
r.

Great, merged. Thanks! r.
On 2/10/23 15:19, Yosef Meller wrote:
exploring further, this comes from an unhandled depreciation in Pyvista. Opened a PR with a fix: https://github.com/sfepy/sfepy/pull/939
On Thu, Feb 9, 2023 at 11:43 PM Yosef Meller <yosefm@gmail.com> wrote:
0.37 works for me. Thanks.
On Thu, Feb 9, 2023 at 11:26 PM Robert Cimrman <cimrman3@ntc.zcu.cz> wrote:
I had 0.37.0 (pip-installed) and it worked, now I tried updating to 0.38.1 and it behaves as you report - only a single field is visible - the last one added to the view.
FWIW I can view the other fields using the -f option:
sfepy-view -e regions.vtk -f Gamma1:p0
But it works one field at a time only.
r.
On 2/9/23 19:35, Yosef Meller wrote:
I have pyvista 0.38.1 and sfepy 2022.4, both seem to be the latest releases. Maybe we can go about it the other way: is there an environment with version numbers known to work? I can try a lock file and see if it helps.
On Thu, Feb 9, 2023 at 8:06 PM Robert Cimrman <cimrman3@ntc.zcu.cz> wrote:
So it is a visualization issue - do you have the latest sfepy release or earlier? Maybe updating sfepy and pyvista would help.
r.
On 2/9/23 16:57, Yosef Meller wrote:
three fields. Choosing each one displays the correct result. so at least that's a workaround.
On Thu, Feb 9, 2023 at 4:51 PM Robert Cimrman <cimrman3@ntc.zcu.cz> wrote:
> On 2/9/23 15:18, Yosef Meller wrote: >>> It might be a pyvista-related issues. Can you try another VTK viewer? >>> (e.g. >>> vedo, paraview, ...) >>> >> Paraview gives me only one object in view. >> > > And the button/drop down menu "solid color" shows the three fields or a > single one? > > r. >
participants (2)
-
Robert Cimrman
-
Yosef Meller