def build_ThetaFB_exp_Bode_plotter(): thetafb_mod_name = 'notch_filtered_swept_sine_Gth_comp_no_accel_FB_amp_15_duration_40000_maxf_20_avebodes' relpath = 'siue/Research/SFLR_2010/data/swept_sine/August_2010/after_beam_reattachment/TMM' data_folder = rwkos.FindFullPath(relpath) if data_folder not in sys.path: sys.path.insert(1, data_folder) data_path = os.path.join(data_folder, thetafb_mod_name + '.pkl') ThetaFB_Exp_Bode_Plotter = BPO.exp_bode_object(data_path, \ ThetaFB_Bode_opts) return ThetaFB_Exp_Bode_Plotter
def build_OL_Bode_plotter(): relpath = 'siue/Research/PSoC_Research/SFLR_2010/data/swept_sine/August_2010/after_beam_reattachment' data_folder = rwkos.FindFullPath(relpath) if data_folder not in sys.path: sys.path.insert(1, data_folder) exp_mod_name = 'swept_sine_kp_1_after_beam_reattachment_amp_75_maxf_20_duration_40000_avebodes' OL_Exp_Bode_Plotter = BPO.exp_bode_object(exp_mod_name, \ OL_Bode_opts) return OL_Exp_Bode_Plotter
def OL_bode_plots(fi=1, resave=1, TMM=True): OL_Exp_Bode_Plotter = build_OL_Bode_plotter() relpath2 = 'siue/Research/PSoC_Research/SFLR_2010/data/swept_sine/July_2010/JVC/July_02_2010' data_folder2 = rwkos.FindFullPath(relpath2) if data_folder2 not in sys.path: sys.path.insert(1, data_folder2) Kp_mod_name = 'swept_sine_kp_1_good_amp_75_maxf_20_duration_40000_avebodes' log_ds_mod_name = 'swept_sine_kp_1_after_beam_reattachment_amp_75_maxf_20_duration_40000_logdownsampled' #Kp_mod_name OL_Exp_Bode_Plotter2 = BPO.exp_bode_object(log_ds_mod_name, \ OL_Bode_opts) OL_Plotters = [OL_Exp_Bode_Plotter] if TMM: OL_TMM_model = build_OL_TMM_model() OL_TMM_Bode_Plotter = BPO.TMM_bode_object(OL_TMM_model, \ OL_Bode_opts) OL_Plotters.append(OL_TMM_Bode_Plotter) OL_overlayer = BPO.Bode_Overlayer(OL_Plotters, \ OL_Bode_opts) OL_overlayer.plot_bodes(f, startfi=fi) #OL_Exp_Bode_Plotter2.plot_bodes(f, startfi=fi, trunc=False, clear=False, linetype='o') PU.SetLegend(fi,axis=0,loc=3) PU.SetLegend(fi+1,axis=0,loc=2) if resave: mysave('ol_theta_v_bode.eps', fi) mysave('ol_a_v_bode.eps', fi+1)