From a7004e6eac6ed2a83a7ff69d170caadcff218f97 Mon Sep 17 00:00:00 2001 From: Hugo Karas Date: Wed, 27 Nov 2024 15:33:32 +0100 Subject: [PATCH] Add par0 to dockstring --- deerlab/dd_models.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/deerlab/dd_models.py b/deerlab/dd_models.py index 27692032..690c011c 100644 --- a/deerlab/dd_models.py +++ b/deerlab/dd_models.py @@ -50,16 +50,17 @@ def _dd_docstring(model,notes): string += '\n' string += '\n' table = [] - table.append(['Name','Lower','Upper','Type','Frozen','Unit','Description']) + table.append(['Name','Lower','Upper','par0','Type','Frozen','Unit','Description']) for n,paramname in enumerate(model._parameter_list(order='vector')): param_str = f'``{paramname}``' lb_str = f'{np.atleast_1d(getattr(model,paramname).lb)[0]:5.3g}' ub_str = f'{np.atleast_1d(getattr(model,paramname).ub)[0]:5.3g}' + par0_str = f'{np.atleast_1d(getattr(model,paramname).par0)[0]:5.3g}' linear_str = "linear" if np.all(getattr(model,paramname).linear) else "nonlin" frozen_str = "Yes" if np.all(getattr(model,paramname).frozen) else "No" unit_str = str(getattr(model,paramname).unit) desc_str = str(getattr(model,paramname).description) - table.append([param_str,lb_str,ub_str,linear_str,frozen_str,unit_str,desc_str]) + table.append([param_str,lb_str,ub_str,par0_str,linear_str,frozen_str,unit_str,desc_str]) string += formatted_table(table) string += f'\n{notes}'