Finally managed to get the has_switching_off function in triangulation.py to work. It now return true or false! yay