How It Works:
A wire segment is in parallel with a resistor which shorts the resistor. If there is a bend in the wire, then the wire segment shorting the resistor is broken which makes the resistor part of the circuit and in series with another resistor connected to the voltage source. The resistor connected to voltage source is called Rtrack.
Multiple other resistors are connected in parallel to a wire segment whose connection is broken with a bend. The sum of these resistors is referred to as Req. In the read-rope-configs-series.py simulation, Req is added in series. This is the best configuration because it gives output voltage values very different and far from each other. In the read-rope-configs-parallel.py simulation, Req is added in parallel. This is the not a good configuration because it gives output voltage values very similar and close to each other.
The resistor is always connected to the wire and the wire segment shorting the resistor is what is switched. Think of the wire segment as being connected to a SPST switch that is normally closed. The physical bend is like opening the connection of the switch with a press.
See the diagrams/schematics/figures for read rope here.