Open eleniv3d opened 1 week ago
Hello @eleniv3d , I belive that you might running on a branch not updated with the current main. In the main the DFAssembly.total_number_joints
does not exists:
Nevertheless, the way you are doing it is the correct one.
I believe it is like that on the main :) @9and3
https://github.com/diffCheckOrg/diffCheck/blob/main/src/gh/components/DF_joint_segmentator/code.py
Apologies @eleniv3d I didn't get you are referring to the DFJointSegmentator
. Acutally we do have a property in DFAssembly
(my bad sorry again):
@property
def total_number_joints(self):
return max([joint.id for joint in self.all_joints]) + 1
In your scenario how many joints do you obtain (wrongly)?
we discussed with @DamienGilliard , he's a bit busy at the moment but since it's touching the segmentation Python component he will take care of solving this. Thanks for bringing this up @eleniv3d 👐
@DamienGilliard / @eleniv3d , do you know the status on this one?
@9and3 , @eleniv3d , it is still on my desk. The workaround of Eleni works fine I believe, but this must be fixed. I have planned to work on diffcheck this afternoon, I'll try to get it fixed then.
Great, let me know, you can link this issue to the PR you are opening so we know is tracked ! 👐
For this assembly, it was trying to find 4 joints. Switching from
i_assembly.total_number_joints
tolen(i_assembly._all_joints)
did the trick