Skip to content

Commit

Permalink
Fixed from_asd_txt to from_txt everywhere.
Browse files Browse the repository at this point in the history
  • Loading branch information
Andrew Lundgren authored and Andrew Lundgren committed Jan 6, 2014
1 parent 7a68e16 commit fb7ba87
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion bin/pycbc_banksim
Original file line number Diff line number Diff line change
Expand Up @@ -242,7 +242,7 @@ filter_delta_f = 1.0 / float(options.filter_signal_length)
if options.verbose:
print("Reading and Interpolating PSD")
if options.asd_file:
psd = pycbc.psd.from_asd_txt(options.asd_file, filter_n,
psd = pycbc.psd.from_txt(options.asd_file, filter_n,
filter_delta_f, options.filter_low_frequency_cutoff)
elif options.psd:
psd = pycbc.psd.from_string(options.psd, filter_n, filter_delta_f,
Expand Down
2 changes: 1 addition & 1 deletion bin/pycbc_faithsim
Original file line number Diff line number Diff line change
Expand Up @@ -169,7 +169,7 @@ print("Reading and Interpolating PSD")
# Load the asd file

if options.asd_file:
psd = pycbc.psd.from_asd_txt(options.asd_file, filter_n,
psd = pycbc.psd.from_txt(options.asd_file, filter_n,
delta_f, options.filter_low_frequency_cutoff)
psd *= DYN_RANGE_FAC **2
psd = FrequencySeries(psd,delta_f=psd.delta_f,dtype=float32)
Expand Down
2 changes: 1 addition & 1 deletion test/bankvetotest.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
N = sr * bl
n = N/2 + 1

psd = pycbc.psd.from_asd_txt("ZERO_DET_high_P.txt", n, df, 14)
psd = pycbc.psd.from_txt("ZERO_DET_high_P.txt", n, df, 14)
strain = noise_from_psd(N, dt, psd, seed=0)

htildep, htildec = get_fd_waveform(approximant="TaylorF2", mass1=10, mass2=10, f_lower=15, delta_f=df)
Expand Down
2 changes: 1 addition & 1 deletion tools/timing/banksim/banksim.py
Original file line number Diff line number Diff line change
Expand Up @@ -227,7 +227,7 @@ def outside_mchirp_window(template,signal,w):

print("Reading and Interpolating PSD")
if options.asd_file:
psd = pycbc.psd.from_asd_txt(options.asd_file, filter_n,
psd = pycbc.psd.from_txt(options.asd_file, filter_n,
filter_delta_f, options.filter_low_frequency_cutoff)
elif options.psd:
psd = pycbc.psd.from_string(options.psd, filter_n, filter_delta_f,
Expand Down

0 comments on commit fb7ba87

Please sign in to comment.