I am quite used to the convention of representing a “success” with “return 0” and “failure” with “return 1”.
Do you know why this concept is reversed in the documentation at util.vtkAlgorithm Module — ParaView/Python 5.12.0-776-gfc5a2391cc documentation ?
If I am correct, the examples you provide uses “return 1” for “success” and “return 0” for “failure”, which is confusing to me.
Please comment.
VTK’s own API uses the “reverse” convention. ParaView inherits that. I believe that the original development was on Windows quite a bit where the APIs are indeed “0 for failure” a lot of the time.
1 Like