I want to change the name of a folder in the Subject hierarchy in the ‘Data’ module.
I tried using
SetItemName() like this:
but this only changed the name in the ‘Subject hierarchy item information’ and not in the folder name in the hierarchy tree.
Here you can see that I wanted to change the name of the ‘NewFolder’ folder to ‘new_name’ but the name ‘NewFolder’ did not change:
Slicer 5.10-2022-05-08 MacOS