You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
The text was updated successfully, but these errors were encountered:
aymgal
changed the title
Custom __desc__ methods for all coolest.template classes
Custom description when printing instances of classes from coolest.templateJul 31, 2023
Currently, calling
print()
on a given object from thecoolest
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 aParameter
object for instance. A simple solution is to write a custom__desc__()
method for each class.The text was updated successfully, but these errors were encountered: