Example #1
0
#!/usr/bin/env python
import config_types

basic = config_types.ConfigList('basic')
basic.add_config('institution', config_types.StrConfig())
basic.add_config('pipeline', config_types.StrConfig())
basic.add_config('survey', config_types.StrConfig())
basic.add_config('pipelinedir', config_types.DirConfig())
basic.add_config('delete_rawdata', config_types.BoolConfig())
basic.add_config('coords_table', config_types.FileConfig())
basic.add_config('log_dir', config_types.ReadWriteDirConfig())
basic.add_config('qsublog_dir', config_types.ReadWriteDirConfig())

if __name__ == '__main__':
    import basic as configs
    basic.populate_configs(configs.__dict__)
    basic.check_sanity()
Example #2
0
import config_types

download = config_types.ConfigList('download')
download.add_config('api_service_url', config_types.StrConfig())
download.add_config('api_username', config_types.StrConfig())
download.add_config('api_password', config_types.StrConfig())
download.add_config('temp', config_types.DirConfig())
download.add_config('space_to_use', config_types.IntOrLongConfig())
download.add_config('min_free_space', config_types.IntOrLongConfig())
download.add_config('numdownloads', config_types.IntConfig())
download.add_config('numrestores', config_types.IntConfig())
download.add_config('numretries', config_types.IntConfig())
download.add_config('ftp_host', config_types.StrConfig())
download.add_config('ftp_port', config_types.IntConfig())
download.add_config('ftp_username', config_types.StrConfig())
download.add_config('ftp_password', config_types.StrConfig())
download.add_config('log_file_path', config_types.FileConfig())
download.add_config('request_timeout', config_types.IntConfig())
download.add_config('request_numbits', config_types.IntConfig())
download.add_config('request_datatype', config_types.StrConfig())
Example #3
0
#!/usr/bin/env python
import config_types

basic = config_types.ConfigList('basic')
basic.add_config('institution', config_types.StrConfig())
basic.add_config('pipeline', config_types.StrConfig())
basic.add_config('survey', config_types.StrConfig())
basic.add_config('pipelinedir', config_types.DirConfig())
basic.add_config('delete_rawdata', config_types.BoolConfig())
basic.add_config('wapp_coords_table', config_types.FileConfig())
basic.add_config('mock_coords_table', config_types.FileConfig())
basic.add_config('log_dir', config_types.ReadWriteDirConfig())
basic.add_config('qsublog_dir', config_types.ReadWriteDirConfig())

if __name__ == '__main__':
    import basic as configs
    basic.populate_configs(configs.__dict__)
    basic.check_sanity()
Example #4
0
#!/usr/bin/env python
import config_types

processing = config_types.ConfigList('processing')
processing.add_config('base_results_directory', config_types.ReadWriteConfig())
processing.add_config('base_working_directory', config_types.StrConfig())
processing.add_config('base_tmp_dir', config_types.StrConfig())
processing.add_config('default_zaplist', config_types.FileConfig())
processing.add_config('zaplistdir', config_types.DirConfig())
processing.add_config('num_cores', config_types.PosIntConfig())
processing.add_config('use_hyperthreading', config_types.BoolConfig())

if __name__ == '__main__':
    import processing as configs
    processing.populate_configs(configs.__dict__)
    processing.check_sanity()
Example #5
0
#!/usr/bin/env python
import config_types

processing = config_types.ConfigList('processing')
processing.add_config('base_results_directory', config_types.ReadWriteConfig())
processing.add_config('base_working_directory', config_types.StrConfig())
processing.add_config('base_tmp_dir', config_types.StrConfig())
processing.add_config('default_wapp_zaplist', config_types.FileConfig())
processing.add_config('default_mock_zaplist', config_types.FileConfig())
processing.add_config('zaplistdir', config_types.DirConfig())
processing.add_config('num_cores', config_types.PosIntConfig())
processing.add_config('use_hyperthreading', config_types.BoolConfig())

if __name__ == '__main__':
    import processing as configs
    processing.populate_configs(configs.__dict__)
    processing.check_sanity()