diff --git a/src/pg_rad/objects.py b/src/pg_rad/objects.py index 27c7a08..8e2cea2 100644 --- a/src/pg_rad/objects.py +++ b/src/pg_rad/objects.py @@ -35,4 +35,7 @@ class Source(Object): super().__init__(x, y, z, name, color) self.strength = strength - self.color = color \ No newline at end of file + self.color = color + + def __repr__(self): + return f"Source(name={self.name}, strength={self.strength}, pos={(self.x, self.y, self.z)})" \ No newline at end of file