FIXED:Opex method don't exist on container

Hello,

I’m using 2023.12480 on windows.

On containers the opex method don’t exist but it’s in the doc

python >>> foo = op(“/base1”)
python >>> foo.opex
Traceback (most recent call last):
File “”, line 1
td.tdAttributeError: ‘td.baseCOMP’ object has no attribute ‘opex’ Context:/base1

baseCOMP Class
opexOP (Read Only):

cheers,
colas

You can use opex like this:

try:
foo = opex(“/project1/base1”)
print(f"path to your comp is: {foo}")
except:
debug(“Base comp does not exist”)

Hello Idzard,
Thank you for your message.
I know that like that it’s working.
But is it not supposed to also exist as a method on a comp like ‘op’ ?

foo = op("/base1")
foo.op
<td.Shortcut object at 0x000001AB1EBA5190>
foo.opex
Traceback (most recent call last):
  File "<Textport>", line 1
td.tdAttributeError: 'td.baseCOMP' object has no attribute 'opex' Context:/base1

It’s listed as a comp method in the doc

Cheers,
Colas

2 Likes

Interesting. Good catch, I will report.

This will be fixed in builds 2023.12540 and later. Cheers

Amazing thanks a lot