md_creator

Module: run.scripts.md_creator

Create meta data file ‘metadata.yaml’ for FeatureVectorCollection

Used for external files, which can not be read directly in pySPACE. Eg. csv files without names. To be called in the dataset directory.

Function Summary

main(md_file)
get_numerical_user_input(msg) Request input, split it by ‘,’ and parse it for ‘-‘
get_user_input(msg) Request input
parse_list(input_list) Replace range by explicit numbers
check_delimiter(data) Checks delimiter to have length one
generate_meta_data(data) Map data to the metadata.yaml string and set defaults
write_md_file(meta_data, md_file)
give_info(msg)

Functions

main()

pySPACE.run.scripts.md_creator.main(md_file)[source]

get_numerical_user_input()

pySPACE.run.scripts.md_creator.get_numerical_user_input(msg)[source]

Request input, split it by ‘,’ and parse it for ‘-‘

get_user_input()

pySPACE.run.scripts.md_creator.get_user_input(msg)[source]

Request input

parse_list()

pySPACE.run.scripts.md_creator.parse_list(input_list)[source]

Replace range by explicit numbers

check_delimiter()

pySPACE.run.scripts.md_creator.check_delimiter(data)[source]

Checks delimiter to have length one

generate_meta_data()

pySPACE.run.scripts.md_creator.generate_meta_data(data)[source]

Map data to the metadata.yaml string and set defaults

write_md_file()

pySPACE.run.scripts.md_creator.write_md_file(meta_data, md_file)[source]

give_info()

pySPACE.run.scripts.md_creator.give_info(msg)[source]