diff --git a/python/damask/_crystal.py b/python/damask/_crystal.py index 35977af28..3f89597f6 100644 --- a/python/damask/_crystal.py +++ b/python/damask/_crystal.py @@ -111,7 +111,7 @@ class Crystal(): def __repr__(self): - """Represent.""" + """Give short human-readable summary.""" family = f'Crystal family: {self.family}' return family if self.lattice is None else \ '\n'.join([family, diff --git a/python/damask/_grid.py b/python/damask/_grid.py index 6ad1f5847..6d0538f67 100644 --- a/python/damask/_grid.py +++ b/python/damask/_grid.py @@ -58,7 +58,7 @@ class Grid: def __repr__(self) -> str: - """Basic information on grid definition.""" + """Give short human-readable summary.""" mat_min = np.nanmin(self.material) mat_max = np.nanmax(self.material) mat_N = self.N_materials diff --git a/python/damask/_orientation.py b/python/damask/_orientation.py index c7fbbbb85..ea3bbba8b 100644 --- a/python/damask/_orientation.py +++ b/python/damask/_orientation.py @@ -120,7 +120,7 @@ class Orientation(Rotation,Crystal): def __repr__(self) -> str: - """Represent.""" + """Give short human readable summary.""" return '\n'.join([Crystal.__repr__(self), Rotation.__repr__(self)]) diff --git a/python/damask/_result.py b/python/damask/_result.py index 6ea41863e..1089ac315 100644 --- a/python/damask/_result.py +++ b/python/damask/_result.py @@ -167,7 +167,7 @@ class Result: def __repr__(self): - """Show summary of file content.""" + """Give short human-readable summary.""" with h5py.File(self.fname,'r') as f: header = [f'Created by {f.attrs["creator"]}', f' on {f.attrs["created"]}', diff --git a/python/damask/_rotation.py b/python/damask/_rotation.py index e99d2c1b5..71d7a837c 100644 --- a/python/damask/_rotation.py +++ b/python/damask/_rotation.py @@ -88,7 +88,7 @@ class Rotation: def __repr__(self) -> str: - """Represent rotation as unit quaternion(s).""" + """Give short human readable summary.""" return f'Quaternion{" " if self.quaternion.shape == (4,) else "s of shape "+str(self.quaternion.shape[:-1])+chr(10)}'\ + str(self.quaternion) diff --git a/python/damask/_table.py b/python/damask/_table.py index cdbecac93..6715ecc9d 100644 --- a/python/damask/_table.py +++ b/python/damask/_table.py @@ -37,7 +37,7 @@ class Table: def __repr__(self) -> str: - """Brief overview.""" + """Give short human-readable summary.""" self._relabel('shapes') data_repr = self.data.__repr__() self._relabel('uniform') diff --git a/python/damask/_vtk.py b/python/damask/_vtk.py index f77fa31dd..3a2355640 100644 --- a/python/damask/_vtk.py +++ b/python/damask/_vtk.py @@ -459,6 +459,7 @@ class VTK: def __repr__(self) -> str: + """Give short human-readable summary.""" info = [] if isinstance(self.vtk_data,vtk.vtkImageData): info.append('vtkImageData')