Revision 8280436b75141aa3c3ac6545a7d857b45c7ab7f6 authored by Dirk Roorda on 04 January 2017, 19:13:38 UTC, committed by Dirk Roorda on 04 January 2017, 19:13:38 UTC
1 parent c442d83
tf-test.py
from tf.read import readFeature
testDir = 'tests'
def test_monads():
result = readFeature('{}/{}.tf'.format('tests', 'monads'))
if result == None:
print('There were errors')
else:
(isEdge, metaData, data) = result
label = 'edge' if isEdge else 'node'
print('{} feature\n{}\nData: {} {}s'.format(
label,
'\n'.join('{:<20}: {}'.format(*x) for x in sorted(metaData.items())),
len(data),
label,
))
test_monads()
Computing file changes ...