NTParameterSet inherits from dict, and so ps.values is a function. In the other classes, ps.values was a dictionary. Here I've renamed ps.values to ps._values, and implemented ps.items() to match the behaviour of dict.
Coverage decreased (-0.01%) to 71.519% when pulling c930d3c490f9fee91543d7b7a0692e4bf0a551f1 on apdavison:fix-parameters into d5cc713574dc92c03fff1ddceca776cb4320fa5a on open-research:master.
I reviewed this PR and it is a good idea to rename ps.values to ps._values. But ps.items might be not necessary, because ps.as_dict appears a similar method to ps.items.
NTParameterSet inherits from dict, and so
ps.values
is a function. In the other classes,ps.values
was a dictionary. Here I've renamedps.values
tops._values
, and implementedps.items()
to match the behaviour of dict.