diff --git a/python/damask/table.py b/python/damask/table.py index 140665ab2..56507847e 100644 --- a/python/damask/table.py +++ b/python/damask/table.py @@ -130,7 +130,7 @@ class Table(): self.data[label] = array.reshape(self.data[label].shape) - def get_labels(self): + def labels(self): """Return the labels of all columns.""" return list(self.shapes.keys()) diff --git a/python/tests/test_Table.py b/python/tests/test_Table.py index e7550984d..c8965d1bd 100644 --- a/python/tests/test_Table.py +++ b/python/tests/test_Table.py @@ -49,8 +49,8 @@ class TestTable: d=default.get_array('F') assert np.allclose(d,0.0) and d.shape[1:] == (3,3) - def test_get_labels(self,default): - assert default.get_labels() == ['F','v','s'] + def test_labels(self,default): + assert default.labels() == ['F','v','s'] def test_add_array(self,default): d = np.random.random((5,9))