示例#1
0
if sym_derivs:
    unique_loc_net = network.unique_locs_det_responses(network_specs,f,inj_params,deriv_symbs_string,wf_model_name,wf_other_var_dic,conv_cos,conv_log,use_rot,num_cores)
else:
    unique_loc_net = network.unique_locs_det_responses(network_specs,f,inj_params,deriv_symbs_string,wf_model_name,wf_other_var_dic,conv_cos,conv_log,use_rot,num_cores,step,method,order,n)

# get the unique PSDs for the various detector technologies
unique_tec_net = network.unique_tecs(network_specs,f)

############################################################################
### Perform the analysisa of each network from the unique components
############################################################################

output = {}

for num,network_spec in enumerate(network_specs):
    net = network.Network(network_spec)
    # get the correct network from the unique components calculated above
    net.get_det_responses_psds_from_locs_tecs(unique_loc_net,unique_tec_net)
    net.calc_snrs_det_responses(only_net=only_net)
    net.calc_errors(only_net=only_net)
    net.calc_sky_area_90(only_net=only_net)

    snr, errs, cov, fisher, inv_err = net.get_snrs_errs_cov_fisher_inv_err_for_key(key='network')
    cond_num  = net.cond_num
    well_cond = net.wc_fisher

    output[f'network {num}'] = {'network_spec':network_spec, 'snr':snr, 'errs':errs, 'cov':cov, 'cond_num':cond_num, 'well_cond':well_cond, 'inv_err':inv_err}

############################################################################
### Print results
############################################################################
示例#2
0
# choose frequency array
f_lo = 1.
f_hi = 2.**12
df = 2.**-4
f = np.arange(f_lo, f_hi + df, df)

# choose detectors/network
network_label = 'ECa4cSa4c'

############################################################################
### Initialize network and setup antenna patterns, location phase factors,
### and PSDs
############################################################################

net = network.Network(network_label)
net.set_net_vars(f=f, inj_params=inj_params, use_rot=use_rot)
net.setup_ant_pat_lpf_psds()

############################################################################
### Get antenna patterns, location phase factors, and PSDs
############################################################################

print()

# Method 1 - using the detector keys to get specific detectors
print('Method 1')
print(net.det_keys)
print()
for det_key in net.det_keys:
    print(det_key)