a_scale=1.25, n_chains=300, n_steps=-n_seconds, calc_brightness=1 ) if __name__ == '__main__': run_name = 'sun_inactive-osg' executable_path = '/home/bmorris/git/STSP/stsp_20160816' top_level_output_dir = os.path.join('/local-scratch/bmorris/sun_inactive/', run_name) transit_paths = glob('/local-scratch/bmorris/sun_inactive/friedrich/sun_inactive/lc*.txt') spot_param_paths = glob('/local-scratch/bmorris/sun_inactive/friedrich/sun_inactive/stsp_spots*.txt') run = STSPRun(parameter_file_path=None, light_curve_path=None, output_dir_path=top_level_output_dir, initial_dir=top_level_output_dir, condor_config_path=os.path.join('./', run_name+'.condor'), planet_properties=planet_properties, stellar_properties=stellar_properties, spot_properties=spot_properties, action_properties=action_properties, n_restarts=25) run.copy_data_files(transit_paths=transit_paths, spot_param_paths=spot_param_paths) run.create_runs() #run.make_condor_config()
spot_properties = dict(lightcurve_path=os.path.abspath(light_curve_path), flattened_flag=0, n_spots=5, fractional_spot_contrast=0.7 ) # For an unseeded run: action_properties = dict(random_seed=74384338, a_scale=2.5, n_chains=50, n_steps=1000, calc_brightness=1 ) run = STSPRun(parameter_file_path=parameter_file_path, light_curve_path=light_curve_path, executable_path='/astro/users/bmmorris/git/hat-11/kepler17/{0}.csh'.format(run_name), output_dir_path=top_level_output_dir, initial_dir=top_level_output_dir, condor_config_path=os.path.join('./', run_name+'.condor'), planet_properties=planet_properties, stellar_properties=stellar_properties, spot_properties=spot_properties, action_properties=action_properties, n_restarts=20) #run.write_data_files() run.create_runs() run.make_condor_config()