Skip to content

Commit 48c01a9

Browse files
author
sambit-giri
committed
fftconvolve usage fixed
that had broke due to the move to a different file
1 parent 871c90f commit 48c01a9

3 files changed

Lines changed: 6 additions & 3 deletions

File tree

src/tools21cm/beam_convolve.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
from scipy import signal
44
from .helper_functions import print_msg
55
from .smoothing import gauss_kernel, get_beam_w
6-
from .helper_functions import fftconvolve
6+
from .fft_functions import fftconvolve
77

88
def beam_convolve(input_array, z, fov_mpc, beam_w = None, max_baseline = None, \
99
beamshape='gaussian'):

src/tools21cm/plotting.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -191,7 +191,9 @@ def plot_triangle(samples_dict, weights_dict=None,
191191
)
192192
# Add legend
193193
handles = [mlines.Line2D([], [], color=(colors[n] if isinstance(colors, dict) else colors), label=n) for n in names]
194-
fig.legend(handles=handles, loc='upper right', bbox_to_anchor=(0.95, 0.95))
194+
bbox_to_anchor = kwargs.get('bbox_to_anchor', (0.95, 0.95))
195+
legend_fontsize = kwargs.get('legend_fontsize', 14)
196+
fig.legend(handles=handles, loc='upper right', bbox_to_anchor=bbox_to_anchor, fontsize=legend_fontsize)
195197
return fig
196198

197199
# --- 2. GETDIST BACKEND ---

src/tools21cm/smoothing.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,8 @@
1313
from numpy.fft import rfftn, irfftn
1414
from math import ceil, floor
1515
from numpy import array, asarray, roll
16-
from .helper_functions import fftconvolve, find_idx
16+
from .helper_functions import find_idx
17+
from .fft_functions import fftconvolve
1718
from tqdm import tqdm
1819
import astropy.units as u
1920

0 commit comments

Comments
 (0)