Solved

Is there a difference between AttributeRemover and Feature.removeAttribute('attr') in the PythonCaller


Badge

I was wondering, if there is a difference, how the two things work?

I create Lists in a Spatialrelator, and I need to sum over some of their values. As I have a lot of data, I want to remove the lists after summation, and i think feature.removeAttribute('_relationship{}') does the trick. However if I add an AttributeRemover afterwards, under Lists it shows me the _relationship{} List, so it wasn't removed by feature.removeAttribute() ?

icon

Best answer by takashi 14 March 2022, 16:15

View original

2 replies

Userlevel 2
Badge +17

Hi @dominikl​ , I think the Python code "feature.removeAttribute('_listname{}')" removes the list definitely, but it won't hide the list name on the GUI. You need to hide the list name with the List to Hide parameter in the PythonCaller, if necessary.

Badge

Hi @dominikl​ , I think the Python code "feature.removeAttribute('_listname{}')" removes the list definitely, but it won't hide the list name on the GUI. You need to hide the list name with the List to Hide parameter in the PythonCaller, if necessary.

Thank you very much :)

Reply