Closed ortk95 closed 3 months ago
Done most of the implementation in 5f0a38b - 12d52c3. Still need to:
Observation.__str__
and Observation.__repr__
_get_default_init_kwargs
is correct for all classes. I.e. we should initialise an object with minimal arguments, then check the values of _get_kwargs
and _get_default_init_kwargs
are consistent.__repr__
- currently the default looks quite ugly.
Inspired by #350, objects with non default kwarg arguments should have this reflected in their
repr
(and maybestr
?) representations.Could probably implement this by e.g. defining a dict of default kwarg values for each class, then populating the
repr
withkey=value
pairs for any that are not the default values. This would maintain the simplicity for most objects, while keeping the information content for customised objects.