Fix a number of problems, mostly related to the way I was selecting the subset nodes. Fixed by creating new variables which describe the lower left and upper right coordinates. Those variables are then used to find the nodes in the subset. Also added better support for the end of line detection. This is now achieved by using a distance from origin. If this exceeds the lenfth of the profile, we stop. This is probably not bulletproof, but it should work OK most of the time. Also remove unnecessary figure from the regular interval section. Finally, add percentage completion (where the percentage is the distance between the start and end points)
Fix a number of problems, mostly related to the way I was selecting the subset nodes. Fixed by creating new variables which describe the lower left and upper right coordinates. Those variables are then used to find the nodes in the subset. Also added better support for the end of line detection. This is now achieved by using a distance from origin. If this exceeds the lenfth of the profile, we stop. This is probably not bulletproof, but it should work OK most of the time. Also remove unnecessary figure from the regular interval section. Finally, add percentage completion (where the percentage is the distance between the start and end points)

pwcazenave/PyFVCOM