Skip to content

Custom description when printing instances of classes from coolest.template #49

@aymgal

Description

@aymgal

Currently, calling print() on a given object from the coolest template interface returns the default description, e.g. <coolest.template.classes.galaxy.Galaxy object at 0x1304daa60>.

It would be much better if the description gives useful information about the object itself, such as the mass/light profiles for a Galaxy object, or stored values for a Parameter object for instance. A simple solution is to write a custom __desc__() method for each class.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions