Skip to main content
Solved

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

  • March 14, 2022
  • 2 replies
  • 10 views

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.

This post is closed to further activity.
It may be an old question, an answered question, an implemented idea, or a notification-only post.
Please check post dates before relying on any information in a question or answer.
For follow-up or related questions, please post a new question or idea.
If there is a genuine update to be made, please contact us and request that the post is reopened.

2 replies

takashi
Celebrity
  • 7843 replies
  • 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
  • 1 reply
  • March 23, 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.

Thank you very much :)