From e7a67262f809eacf6af7b8286740c861d5159bb2 Mon Sep 17 00:00:00 2001 From: Martin Diehl Date: Thu, 5 Dec 2019 06:00:49 +0100 Subject: [PATCH] clear enough --- python/damask/table.py | 2 +- python/tests/test_Table.py | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) 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))