Commit 1c02ee2d authored by Christophe Benz's avatar Christophe Benz

Do not generate files anymore

parent 0f4c6f2f
......@@ -425,31 +425,6 @@ def save_node(dir, node):
with open(os.path.join(dir, filename), 'w') as node_file:
json.dump(node, node_file, ensure_ascii=False, indent=2, sort_keys=True)
with open(os.path.join(dir, ''), 'w') as readme_file:
readme_file.write('# {}\n'.format(title))
readme_file.write('\nMetadata: [{filename}]({filename})\n'.format(filename=filename))
if node.get('categories') is not None:
lines = '\n'.join(
'- [{directory_name}]({directory_name})'.format(directory_name=directory_name)
for directory_name in node['categories']
readme_file.write('\n## Categories\n\n{}'.format(lines))
if node.get('datasets') is not None:
lines = '\n'.join(
'- [{directory_name}]({directory_name})'.format(directory_name=directory_name)
for directory_name in node['datasets']
readme_file.write('\n## Datasets\n\n{}'.format(lines))
if node.get('series') is not None:
lines = '\n'.join(
'- [{directory_name}]({directory_name})'.format(directory_name=directory_name)
for directory_name in node['series']
readme_file.write('\n## Series\n\n{}'.format(lines))
if node.get('key') is not None:
# Node is a series => Add a link to its observations.
readme_file.write('\nObservations: [{filename}]({filename})\n'.format(filename='observations.tsv'))
if __name__ == '__main__':
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