From 8d8826a649428638c580719fcacd6ae66d84b719 Mon Sep 17 00:00:00 2001 From: Pim Nelissen Date: Tue, 27 Jan 2026 19:46:03 +0100 Subject: [PATCH] add representation for Source object --- src/pg_rad/objects.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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