Skip to content

Commit 52c97e9

Browse files
Save for some fixes
1 parent 32030e0 commit 52c97e9

File tree

4 files changed

+243
-242
lines changed

4 files changed

+243
-242
lines changed

pycbc/fft/core.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -46,12 +46,12 @@ def _list_available(possible_list, possible_dict):
4646
available_list = []
4747
available_dict = {}
4848
for backend in possible_list:
49-
try:
49+
# try:
5050
mod = __import__('pycbc.fft.' + possible_dict[backend], fromlist = ['pycbc.fft'])
5151
available_dict.update({backend:mod})
5252
available_list.append(backend)
53-
except (ImportError, OSError):
54-
pass
53+
# except (ImportError, OSError):
54+
# pass
5555
return available_list, available_dict
5656

5757
# The main purpose of the top-level module is to present a

pycbc/psd/variation.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -165,7 +165,7 @@ def calc_filt_psd_variation(strain, segment, short_segment, psd_long_segment,
165165
# Create a bandpass filter between low_freq and high_freq
166166
filt = sig.firwin(4 * srate, [low_freq, high_freq], pass_zero=False,
167167
window='hann', fs=srate)
168-
filt.resize(int(psd_duration * srate))
168+
filt.resize(int(psd_duration * srate), refcheck=False)
169169
# Fourier transform the filter and take the absolute value to get
170170
# rid of the phase.
171171
filt = abs(rfft(filt))

pycbc/scheme.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -212,10 +212,10 @@ def _scheming_function(*args, **kwds):
212212

213213
return schemed_fn(*args, **kwds)
214214

215-
err = """Failed to find implementation of (%s)
216-
for %s scheme." % (str(fn), current_prefix())"""
215+
err = (f"Failed to find implementation of {func}"
216+
f"for {current_prefix()} scheme.")
217217
for emsg in exc_errors:
218-
err += print(emsg)
218+
err += repr(emsg)
219219
raise RuntimeError(err)
220220
return _scheming_function
221221

0 commit comments

Comments
 (0)