Open dilpath opened 2 years ago
Feature description Result objects refactored to be dataclasses [1]. e.g. OptimizerResult [2] already looks like a dataclass.
OptimizerResult
Motivation/Application
pd.DataFrame(list_of_dataclass)
__repr__
__eq__
Issues
[1] https://docs.python.org/3/library/dataclasses.html [2] https://github.com/ICB-DCM/pyPESTO/blob/a4ce1d219774b265b9825eca827e7e18d57f37ef/pypesto/result/optimize.py#L66-L105
:+1: Nice idea!
Feature description Result objects refactored to be dataclasses [1]. e.g.
OptimizerResult
[2] already looks like a dataclass.Motivation/Application
pd.DataFrame(list_of_dataclass)
)__repr__
and__eq__
(though may need to be customized in pyPESTO)Issues
[1] https://docs.python.org/3/library/dataclasses.html [2] https://github.com/ICB-DCM/pyPESTO/blob/a4ce1d219774b265b9825eca827e7e18d57f37ef/pypesto/result/optimize.py#L66-L105