diff --git a/nifty/field_types/field_array.py b/nifty/field_types/field_array.py index 9c2af98d537a51a3c943614e8f61e2b39a847198..48335bb1e9d6fcc43ac664b63942660a7958467a 100644 --- a/nifty/field_types/field_array.py +++ b/nifty/field_types/field_array.py @@ -28,6 +28,9 @@ class FieldArray(FieldType): except TypeError: self._shape = (int(shape), ) + def __repr__(self): + return "FieldArray(shape=%r)" % (self.shape, ) + @property def shape(self): return self._shape