Dear Patricia:
Thank you very much for your prompt reply on Saturday morning. Your reply is very helpful to me, and I will keep it in mind in the future research.
I just spent an hour going through the code and found that the problem was in:
endo = vtk_thr(bilayer, 2, "CELLS", "elemTag", thr_range[1], thr_range[0])
In fact, the order of thr_range[1] and thr_range[0] is reversed, and the correct code should be:
endo = vtk_thr(bilayer, 2, "CELLS", "elemTag", thr_range[0], thr_range[1])
In addition, since `np.bool` was a deprecated alias for the builtin `bool`, this causes numpy_support.py in the vtk module to report an error. I add "np.bool = np.bool_" to the code, and now the file is working perfectly.
Thanks again for your help! It got me over a key hurdle.