Ensemble.from_optimization_{history,endpoints}
assumes that OptimizerResult.id
is always convertible to int
#1349
Labels
pypesto.ensemble.ensemble.Ensemble.from_optimization_{history,endpoints}
assumes thatOptimizerResult.id
is always convertible toint
Here:
pyPESTO/pypesto/ensemble/ensemble.py
Line 672 in 82b7d5d
and here:
pyPESTO/pypesto/ensemble/ensemble.py
Line 803 in 82b7d5d
Since the attribute is called
id
(and notindex
or anything the like), I don't think this is valid.Those values are used to populate
Ensemble.vector_tags: Sequence[tuple[int, int]]
which I don't see being used anywhere. Therefore, I'd suggest to just use the id string without attempting conversion to int and changing the type ofEnsemble.vector_tags
toSequence[Any]
.The text was updated successfully, but these errors were encountered: