diff --git a/wkcuber/mag.py b/wkcuber/mag.py index 7e47f6e46..1ed520591 100644 --- a/wkcuber/mag.py +++ b/wkcuber/mag.py @@ -48,6 +48,9 @@ def __eq__(self, other): def __str__(self): return self.to_layer_name() + def __expr__(self): + return f"Mag({self.to_layer_name()})" + def to_layer_name(self): x, y, z = self.mag if x == y and y == z: