What should we do if we make an improvement to a node in the Package Manager? I know we can rename it and upload it as a unique node but, assuming it’s an actual improvement, is that the best approach?
Example; the Build Irregular Sublists node created by andydandy assumes you only want multiple nested lists in a parent list as your output. But what if you need to have a single nested list in the parent (as might happen if the user selects a single item instead of multiple items in a previous node that this node is referencing)? If you don’t provide the BIS node with a lists of multiple numbers representing lengths it returns an error in the Python node. As a way around that I added an IF statement that examines the number of items in the lengths input and returns a single list of the original list if there is only one item, otherwise it works as before. It could probably be done in Python as well but that’s beyond me for now.
Is it an improvement? I think so but maybe that’s hubris. I do know that I can use this revised node in more, and varied, situations than I could the original so it’s more useful to me and I want to provide it back to the community so that others can benefit as well.
I’m happy to rename it and upload it as a new node but I wanted to get others thoughts on the issue as well.