PHASTA / vtkpytools

Internal tools for using VTK
https://fluid.colorado.edu/wiki/index.php/VTKpytools
BSD 3-Clause "New" or "Revised" License
0 stars 1 forks source link

fix(barfiletools): pointid truthiness fixed #33

Closed jrwrigh closed 4 years ago

jrwrigh commented 4 years ago

Originally, sampleDataBlockProfile checked whether pointid was given as an argument was tested via the variables "truthiness". Thus, it would fail if it was 0.

Changed to using isinstance(pointid, int) instead to be more strict and not fail unexpectedly.