File tree Expand file tree Collapse file tree 1 file changed +7
-2
lines changed Expand file tree Collapse file tree 1 file changed +7
-2
lines changed Original file line number Diff line number Diff line change @@ -1133,8 +1133,13 @@ def __init__(
11331133 self .mapping_tables = mapping_tables or [MappingTable ()]
11341134 self .parameter_tables = parameter_tables or [ParameterTable ()]
11351135
1136+ def __repr__ (self ):
1137+ return f"<{ self .__class__ .__name__ } id={ self .id !r} >"
1138+
11361139 def __str__ (self ):
1137- model = f"with model ({ self .model } )" if self .model else "without model"
1140+ pid = repr (self .id ) if self .id else "without ID"
1141+
1142+ model = f"with models { self .models } " if self .model else "without model"
11381143
11391144 ne = len (self .experiments )
11401145 experiments = f"{ ne } experiments"
@@ -1152,7 +1157,7 @@ def __str__(self):
11521157 parameters = f"{ nest } estimated parameters"
11531158
11541159 return (
1155- f"PEtab Problem { model } , { conditions } , { experiments } , "
1160+ f"PEtab Problem { pid } { model } , { conditions } , { experiments } , "
11561161 f"{ observables } , { measurements } , { parameters } "
11571162 )
11581163
You can’t perform that action at this time.
0 commit comments