#!/usr/bin/env python import config_types jobpooler = config_types.ConfigList('jobpooler') jobpooler.add_config('max_jobs_running', config_types.IntConfig()) jobpooler.add_config('max_jobs_queued', config_types.PosIntConfig()) jobpooler.add_config('max_attempts', config_types.IntConfig()) jobpooler.add_config('submit_sleep', config_types.PosIntConfig()) jobpooler.add_config('obstime_limit', config_types.PosIntConfig()) jobpooler.add_config('queue_manager', config_types.QManagerConfig()) if __name__ == '__main__': import jobpooler as configs jobpooler.populate_configs(configs.__dict__) jobpooler.check_sanity()
import config_types background = config_types.ConfigList('background') background.add_config('screen_output', config_types.BoolConfig()) background.add_config('jobtracker_db', config_types.DatabaseConfig()) background.add_config('sleep', config_types.IntConfig())
#!/usr/bin/env python import config_types email = config_types.ConfigList('email') email.add_config('enabled', config_types.BoolConfig()) email.add_config('smtp_host', config_types.StrOrNoneConfig()) email.add_config('smtp_port', config_types.IntConfig()) email.add_config('smtp_username', config_types.StrConfig()) email.add_config('smtp_password', config_types.StrConfig()) email.add_config('smtp_login', config_types.BoolConfig()) email.add_config('smtp_usetls', config_types.BoolConfig()) email.add_config('smtp_usessl', config_types.BoolConfig()) email.add_config('recipient', config_types.StrConfig()) 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()) if __name__=='__main__': import email as configs email.populate_configs(configs.__dict__) email.check_sanity()
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())
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())