Skip to main content
Solved

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


Forum|alt.badge.img

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() ?

Best answer by takashi

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.

View original
Did this help you find an answer to your question?

2 replies

takashi
Evangelist
  • Best Answer
  • March 14, 2022

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.


Forum|alt.badge.img
  • Author
  • March 23, 2022
takashi wrote:

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 :)


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings