Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error while opening openFoam file #524

Open
FrancescSM opened this issue Dec 30, 2020 · 8 comments
Open

Error while opening openFoam file #524

FrancescSM opened this issue Dec 30, 2020 · 8 comments

Comments

@FrancescSM
Copy link

{
"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"
}
}

@jourdain
Copy link
Collaborator

jourdain commented Jan 4, 2021

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?

@FrancescSM
Copy link
Author

kitware.zip

Thanks Sebastian.

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

Best,

Francesc

@jourdain
Copy link
Collaborator

jourdain commented Jan 5, 2021

I've reported the issue in ParaView here

@FrancescSM
Copy link
Author

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

@jourdain
Copy link
Collaborator

jourdain commented Jan 5, 2021

What do you mean by error notification?

@FrancescSM
Copy link
Author

image

This button next to Files

@jourdain
Copy link
Collaborator

jourdain commented Jan 5, 2021

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

That one should be here

@FrancescSM
Copy link
Author

Thank you!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants