Open FabioLuporini opened 3 months ago
this way we avoid annoying try-excepts such as
try: theta = model.theta except AttributeError: theta = 0
or
if theta != 0: <expr>
It's not that simple
try/catch
getattr
this way we avoid annoying try-excepts such as
or