Open manulera opened 9 months ago
yes! I see this was done!
To reproduce the old behaviour and pass most old tests, I introduced the parameter
use_fragment_order
. If you agree, I think this can be removed after the merge (I will fix the tests).
Should i then remove this behaviour after the merge?
Yes, I think that would be better.
Ok, then I re-open the issue and when I implement it I will close it
Hi @BjornFJohansson this is what we discussed the other day that I could not explain clearly. Here is an example. Basically, when calling
Assembly.assemble_linear
, the assemblies that are returned are only the ones that start from the first fragment in either orientation, and finish with the last fragment in either orientation. See minimal example below where the same inputs are provided, but their order is changed:This prints
As you can see, it only returns assemblies that start from the first fragment in either orientation and finish with the last fragment, even when the first result is a subassembly of f_1 + f_2 + f_3.
Instead, the new implementation ignores the order of inputs for linear assemblies, and returns always the same output. See how all possibilities are returned.
To reproduce the old behaviour and pass most old tests, I introduced the parameter
use_fragment_order
. If you agree, I think this can be removed after the merge (I will fix the tests).This prints
cc @hiyama341 @JamesBagley since they might be interested