clear enough
This commit is contained in:
parent
2172e92e7e
commit
e7a67262f8
|
@ -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())
|
||||||
|
|
||||||
|
|
|
@ -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))
|
||||||
|
|
Loading…
Reference in New Issue