In method to_population() of a NodeGroup, we set the label as the node_group_id. However, the latter is imported as a Numpy integer and it won't be automatically casted to a string. Because of this, the populations are always set with the default label (auto-incremental). We need to explicitly cast id to string.
In method
to_population()
of a NodeGroup, we set the label as thenode_group_id
. However, the latter is imported as a Numpy integer and it won't be automatically casted to a string. Because of this, the populations are always set with the default label (auto-incremental). We need to explicitly castid
to string.