Page 1 of 1

PolynomialPathFitter doesn't support paths dependent on more than 6 coordinates

Posted: Sat Jan 11, 2025 11:11 am
by maximilian33
Hello. I have been working a bit with the PolynomialPathFitter and was wondering about the limitation on the number of coordinates a path can depend on. Specifically when running the pathfitter on the model I'm using I'll get the error:
"The path '/forceset/FDSL' depends on more than 6 coordinates. This is not supported.".

Looking at the source code I recognized I can bypass this error by increasing the MomentArmThreshold which seems to remove some of the coordinates on which a specific muscle path depends, but obviously this is a workaround that needs further consideration given it will influence the accuracy of the fitted paths.

Anyways, the main thing I'm wondering is why the limitation to 6 coordinates?

Thanks in advance for any help/answers,
Max

Re: PolynomialPathFitter doesn't support paths dependent on more than 6 coordinates

Posted: Thu Jan 23, 2025 1:18 pm
by nbianco
Hi Maximilian,

The 6-coordinate limitation is there because MultivariatePolynomialFunction original did not support more than 6 independent variables. This has been recently changed: MultivariatePolynomialFunction now supports an arbitrary number of independent variables; but I forgot to propagate the change to PolynomialPathFitter.

So thank you for bringing this to my attention!

Best,
Nick