Commit a2dd4281 authored by Douglas's avatar Douglas

Added todo about parameterizing schema generation

It should be possible to chose between a normalized and a not normalized schema in the future.
parent 6f2b1454
...@@ -89,6 +89,8 @@ def get_process_memory_usage(): ...@@ -89,6 +89,8 @@ def get_process_memory_usage():
def get_field_names_and_schema(): def get_field_names_and_schema():
'''Returns the array's dtype and its field names.''' '''Returns the array's dtype and its field names.'''
field_names = ['f%s' % number if not number == 13 else 'quantity' for number in range(23)] field_names = ['f%s' % number if not number == 13 else 'quantity' for number in range(23)]
# TODO: parameterize to get normalize or not normalized schema
array_schema = np.dtype({ array_schema = np.dtype({
'names' : field_names, 'names' : field_names,
'formats': map( 'formats': map(
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment