clear enough

This commit is contained in:
Martin Diehl 2019-12-05 06:00:49 +01:00
parent 2172e92e7e
commit e7a67262f8
2 changed files with 3 additions and 3 deletions

View File

@ -130,7 +130,7 @@ class Table():
self.data[label] = array.reshape(self.data[label].shape) self.data[label] = array.reshape(self.data[label].shape)
def get_labels(self): def labels(self):
"""Return the labels of all columns.""" """Return the labels of all columns."""
return list(self.shapes.keys()) return list(self.shapes.keys())

View File

@ -49,8 +49,8 @@ class TestTable:
d=default.get_array('F') d=default.get_array('F')
assert np.allclose(d,0.0) and d.shape[1:] == (3,3) assert np.allclose(d,0.0) and d.shape[1:] == (3,3)
def test_get_labels(self,default): def test_labels(self,default):
assert default.get_labels() == ['F','v','s'] assert default.labels() == ['F','v','s']
def test_add_array(self,default): def test_add_array(self,default):
d = np.random.random((5,9)) d = np.random.random((5,9))