File tree Expand file tree Collapse file tree 2 files changed +14
-1
lines changed Expand file tree Collapse file tree 2 files changed +14
-1
lines changed Original file line number Diff line number Diff line change @@ -283,7 +283,7 @@ def __repr__(self):
283283 msg += f"\t { density .name } ~ { density } \n "
284284
285285 # Wrap up
286- msg += ")"
286+ msg += " )"
287287
288288 return msg
289289
Original file line number Diff line number Diff line change @@ -359,3 +359,16 @@ def _store_samples(self):
359359 """ Store current samples at index i of samples dict """
360360 for par_name in self .par_names :
361361 self .samples [par_name ].append (self .current_samples [par_name ])
362+
363+ def __repr__ (self ):
364+ """ Return a string representation of the sampler. """
365+ msg = f"Sampler: { self .__class__ .__name__ } \n "
366+ if self .target is None :
367+ msg += f" Target: None \n "
368+ else :
369+ msg += f" Target: \n \t { self .target } \n \n "
370+
371+ for key , value in zip (self .samplers .keys (), self .samplers .values ()):
372+ msg += f" Variable '{ key } ' with { value } \n "
373+
374+ return msg
You can’t perform that action at this time.
0 commit comments