Greetings!
I'm looking at using the .update features of pyslurm.node and pyslurm.partition as opposed to scontrol via CLI. However, I notice that create_node_dict seems to indicate that a numeric value for 'node_state' is expected:
>>> pyslurm.create_node_dict()
{'node_names': None, 'gres': None, 'reason': None, 'node_state': 0, 'weight': 0, 'features': None}
I've searched for a legend of numbers to state names but without success. Does such a mapping exist? How do I know what state corresponds to which number?
Another question I have is, how populated does the dict need to be? If I leave default values from create_*_dict, will it try to perform an update to all the included fields to the default values? If so, is the solution to remove the fields that I don't want to update prior to executing the .update method?
Thanks!