Beispiel #1
0
import config_types

commondb = config_types.ConfigList('commondb')
commondb.add_config('username', config_types.StrConfig())
commondb.add_config('password', config_types.StrConfig())
commondb.add_config('host', config_types.StrConfig())
Beispiel #2
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()
Beispiel #3
0
import config_types

email = config_types.ConfigList('email')
email.add_config('enabled', config_types.BoolConfig())
email.add_config('smtp_host', config_types.StrConfig())
email.add_config('smtp_username', config_types.StrConfig())
email.add_config('smtp_password', config_types.StrConfig())
email.add_config('recipient', config_types.StrConfig())
email.add_config('sender', config_types.StrOrNoneConfig())
email.add_config('send_on_failures', config_types.BoolConfig())
email.add_config('send_on_terminal_failures', config_types.BoolConfig())
email.add_config('send_on_crash', config_types.BoolConfig())
Beispiel #4
0
import config_types

upload = config_types.ConfigList('upload')
upload.add_config('version_num', config_types.StrConfig())
Beispiel #5
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())
Beispiel #6
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()
Beispiel #7
0
import config_types

searching = config_types.ConfigList('searching')
searching.add_config('use_subbands', config_types.BoolConfig())
searching.add_config('fold_rawdata', config_types.BoolConfig())
searching.add_config('datatype_flag', config_types.StrConfig())
searching.add_config('rfifind_chunk_time', config_types.FloatConfig())
searching.add_config('singlepulse_threshold', config_types.FloatConfig())
searching.add_config('singlepulse_plot_SNR', config_types.FloatConfig())
searching.add_config('singlepulse_maxwidth', config_types.FloatConfig())
searching.add_config('to_prepfold_sigma', config_types.FloatConfig())
searching.add_config('max_cands_to_fold', config_types.IntConfig())
searching.add_config('numhits_to_fold', config_types.IntConfig())
searching.add_config('low_DM_cutoff', config_types.FloatConfig())
searching.add_config('lo_accel_numharm', config_types.IntConfig())
searching.add_config('lo_accel_sigma', config_types.FloatConfig())
searching.add_config('lo_accel_zmax', config_types.IntConfig())
searching.add_config('lo_accel_flo', config_types.FloatConfig())
searching.add_config('hi_accel_numharm', config_types.IntConfig())
searching.add_config('hi_accel_sigma', config_types.FloatConfig())
searching.add_config('hi_accel_zmax', config_types.IntConfig())
searching.add_config('hi_accel_flo', config_types.FloatConfig())
searching.add_config('low_T_to_search', config_types.FloatConfig())

searching.add_config('sifting_sigma_threshold', config_types.FloatConfig())
searching.add_config('sifting_r_err', config_types.FloatConfig())
searching.add_config('sifting_short_period', config_types.FloatConfig())
searching.add_config('sifting_long_period', config_types.FloatConfig())
searching.add_config('sifting_harm_pow_cutoff', config_types.FloatConfig())
Beispiel #8
0
#!/usr/bin/python
import config_types

upload = config_types.ConfigList('upload')
upload.add_config('version_num', config_types.FuncConfig())
upload.add_config('pfd_ftp_dir', config_types.StrConfig())
upload.add_config('sp_ftp_dir', config_types.StrConfig())

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