Missing DataComponent.id after upgrade to 3.11.21

Hi,

I upgraded to ImFusion Suite 3.11.21 from 3.8.16 and I’m stuck adapting my python scripts:

I used to rely on reading the id of each component of DataComponentLists (from UltrasoundSweep.elementwise_components(idx)) but now the components don’t have an id attribute anymore, so I can’t figure out what’s in my DataComponentList.

Is there a replacement for this property ?

Regards
Florent

Hi Florent,

thanks for bringing this to our attention. Indeed this seems to be an unintended regression. Unfortunately, there is not much I can offer you as a workaround for arbitrary DataComponents at the moment. You might still be able to obtain their data through component.configuration() though (you can also optionally convert this by appending .asdict()).
If you are interested in a specific one that is known to the PythonSDK you can retrieve it directly via its specific property. You can run help(imfusion.DataComponentList) in Python and scroll to the “read-only properties” section to see all that are available.
Sorry :confused:
We will fix this in the next release.

Cheers,
Ilja

Ok thanks, I’ll be waiting for the next release then.

For now I’ll try to work around it by relying on the class of each component.

Cheers

Hi,

Getting back to you as I have a similar-looking issue in TrackingSequence: I used to call the matrix(timestamp) method but it’s not there anymore, although it looks like it still exists in the C++ SDK.

Is there a workaround ?

Cheers
Florent

Unfortunately it seems like we lost this one as well :confused:
I have fixed it in our code now so it should be back with the next installer.

As far as workarounds go, you do what this method was doing internally and retrieve the matrices from the closest frames and interpolating the rotation and translation components separately.

1 Like

Hi Ilja,

When is the next installer planned for release?

Thank you,
David

Hi David,

I got in touch with Olli and he sent you a new installer.
Also, quick aside: this is the public part of the Forum. For SDK customers we have a section in SDK > Python :wink:

Cheers,
Ilja

1 Like