Kitware/paraviewweb

Error while opening openFoam file

Opened this issue · 8 comments

{
"code": -32001,
"message": "Exception raised",
"data": {
"method": "pv.time.values",
"exception": "TypeError("'float' object is not iterable")",
"trace": "Traceback (most recent call last):\n File "C:\ParaView-5.8.1-Windows-Python3.7-msvc2015-64bit\bin\Lib\site-packages\wslink\websocket.py", line 370, in onMessage\n results = func(obj, *args, **kwargs)\n File "C:\ParaView-5.8.1-Windows-Python3.7-msvc2015-64bit\bin\Lib\site-packages\paraview\web\protocols.py", line 1089, in getTimeValues\n return list(simple.GetAnimationScene().TimeKeeper.TimestepValues)\nTypeError: 'float' object is not iterable\n"
}
}

It is indeed strange that the TimestepValues is a single time value rather than a list...
Do you have a small data file example that we could use to create a test?

kitware.zip

Thanks Sebastian.

It seems that only happens with openFoam projects like the one attached.

Best,

Francesc

I've reported the issue in ParaView here

Thanks Sebastien.

Is it easy to disable error notifications in ParaView Lite? Can you point what code should I change to not show it?

It seems that these error notifications are for debugging purposes but I did not manage to get rid of them while building it for production

What do you mean by error notification?

image

This button next to Files

I see those are the console.error output in the catch call of the client rpc.

That one should be here

Thank you!