from dataclasses import dataclass @dataclass class ModelParams: R: float kappa: float epsilon: float epsilon0: float @property def kappaR(self): return self.kappa * self.R